Matrix Version:5.4.3.1
I’m using the Import from XML tools to update metadata values. I am passing in html using CDATA tags in the xml and it works fine except for when trying to pass any variant on a hyperlink. Example xml:
<action_id>update_metadata</action_id>
<action_type>set_metadata_value</action_type>
<asset>[[output://create_Bodycopy_Div.assetid]]</asset>
<fieldid>261245</fieldid>
<value><![CDATA[<p>
We are working hard on building on our new website and this page will be updated soon.
</p>
<p>
In the mean time, if you need advice please visit <a href="https://website">a website</a>
</p>
]]></value>
</action>
The html is there in the metadata value, but doesn’t display on the front end.
Any thoughts? I have tried escaping the characters and using html charcodes. It’s odd that tags like <p>
or <h1>
don’t present a problem. I suspect it’s something to do with the " but I can’t figure out exactly what. The metadata field the data is going into is a WYSIWIG field.