If you do not want any restrictions use the text field instead of the XML field. If you are stuck with the XML field you can use the <literal> which allows you to put HTML inside.
Randeep, is there any reason you can't provide your trusted users with a different tag to use? You could create custom XML tags that make proper use of CSS which will help to avoid future problems. By putting font tags into your actual content, you will be forced to edit each and every article down the road as <i><font</i> is deprecated. By using HTML directly in a text field, some of the strength of eZ publish, or for that matter, any CMS is lost, as future redesigns will thus require changing or manipulating the content.
The <literal> tag by default will make sure you see html code. In the standard design, it is mapped to
<pre>{$content|wash(xhtml)}</pre>
So you will have to modify this somewhat before you can input raw html.
At the same time I would add: don't use (x)html in any xml field, its a hack which breaks other features, pdf geneation and future outut conversions to name a few.
I was aware of the custom tags article at http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags but I didn't want to use this method, mostly out of laziness, but also because the task for which I wanted to use the font or span or whatever is pretty trivial and would only occur once or twice in the whole website.
But what the heck... I'll give it a shot!
The directions say to make a change to the content.ini.php file to include [CustomTagSettings], is this true for eZPublish version 3.4.1 (which is what I am using)? I have a feeling I should make this change to content.ini.append.php- but in my 'plain' directory or in my 'plain_admin' directory?
__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish
Okay, so I have implemented my custom tag- I call it 'emailtext'.
Now there is a new problem, buecause I use the tag like so:
<custom name="emailtext">
<strong>From:</strong> Me
<strong>To:</strong> You
</custom>
but the admin interface comes back at me saying: Tag 'strong' is not allowed to be the child of 'custom' (removed);
So how do I fix this? Thanks in advance to any help you can give, and I am also posting this question on the http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags page.
__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish
You must be logged in to post messages in this topic!