سؤال

I 'm sending notification mails wherein client variable in a href URL breaks as it contains '&'.For e.g. clientname is tech & Design. When i call this variable it breaks at tech. How to resolve this?Is encoding a resolution and how do i do it?

        "<a href="mailto:xyz@abc.com?subject=ACTION REQUIRED: <$ClientName$> is in your workflow queue | PID: <$xProject_ID$> | DID:<$dID$> | Approve">"
هل كانت مفيدة؟

المحلول 2

regexReplaceAll function helped me resolve the issue. it replaces the matched value from variable. In my case &

Here it is < $regexReplaceAll(ClientName,"&","")$>

< a href="mailto:xyz@abc.com?subject=ACTION REQUIRED: < $regexReplaceAll(ClientName,"&","")$> is in your workflow queue | PID: < $xProject_ID$> | DID:< $dID$> | Approve">"

نصائح أخرى

Use <$xml(ClientName)$> instead of <$ClientName$>

http://docs.oracle.com/cd/E14571_01/doc.1111/e10726/c08_config_ref346.htm

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top