I remember there was a trick with the editor config. But my case is different since I need to avoid encoding for this particular param keeping the other params intact (should be encoded as normal).
Actually we use Umbraco to store data, not to render. So the @Html.Raw() method is not used anywhere I guess.
The other system (which I don't have access to) renders data from Umbraco tables.
Essentially I need to store decoded data in Umbraco tables. Maybe it's possible to hook up to the SaveAndPublish event and replace the "amp;" thing?
Avoid ampersand encoding in macro parameter
Hi guys.
Let's say I have a macro injected in RTE on the backend. The macro has a text parameter.
If I try to put url into the parameter field: http://umbraco.com/?id=1&name=john
The "&" sign becomes "amp;" . How to avoid that?
I remember there was a trick with the editor config. But my case is different since I need to avoid encoding for this particular param keeping the other params intact (should be encoded as normal).
Hi Ivan
What does your code for the macro look like?
Not sure it you will be able to use @Html.Raw() perhaps?
/Jan
Hi Jan!
Actually we use Umbraco to store data, not to render. So the @Html.Raw() method is not used anywhere I guess. The other system (which I don't have access to) renders data from Umbraco tables.
Essentially I need to store decoded data in Umbraco tables. Maybe it's possible to hook up to the SaveAndPublish event and replace the "amp;" thing?
is working on a reply...