Hello,
I want to
convert html tags (e.g. '<div>')
into their HTML entities (e.g. '<div>') using the
htmlspecialchars() function.
This I want to do for a
all text/code between the <code></code> tags in a recourse content field.
I already did some research on the subject but could not find anything helpful.
My limited understanding of modx tells me that a snippet is not helpful because I don't want to output a string. I want to intervene in the processing of the content of an inline-resource before it gets merged. Can anybody give me a tip how this could be done?
summarizing:
- how can I get and change the content of an inline recource?
- where can I code the necessary php code before the inline-resource content is merged with the template?
Any tip, link to a recource or correction would be much appreciated.
ps. Big thanks to all the people who contributed to modx.