Hello Miles,
there is several posibilities to achieve this.
The first one is to disable HTML content clean un and filtering via Jahia Administration GUI (as Jahia root user --> Server Administration --> HTML Editors --> Web-site settings --> Disable HTML clean up and Markup Filtering).
If you decide to leave content clean up and markup filtering enabled (we did so, bacause of other features, like page links parsing etc.) here is the second posibility. Check which HTML parser is configured in config.xml under the key 'org.jahia.services.htmlparser.HtmlParser'.
I'm using Jahia 4.1 branch and this property by me is set to 'org.jahia.services.htmlparser.NekoHtmlParser'.
Now if you open the source code of the NekoHtmlParser class, you could find the following line:
serializer.setOutputProperty(OutputKeys.METHOD, "html");
If you change here the "html" to "xml", your HTML content will remain XHTML conform.
You could also tune other transformer settings (indent etc.) the way aou want.
The same applies to the 'org.jahia.services.htmlparser.TidyHtmlParser' implementation, if this one is configured in your config.xml.
Kind regards.
Sergiy.
| "Miles Tillinger"
<[EMAIL PROTECTED]>
08.05.2006 03:32
|
|
Hi,
I am trying to enforce XHTML compliance on all fields, particularly BigText fields. I’m trying to find where content submitted via BigText editor form has some changes applied, e.g. tags converted to uppercase, <br /> converted to <BR>, trailing slash removed from <img … /> tags etc. more detail:
The following code from TinyMCE editor:
this is a <br />page break <img src="" border="0" />
is ultimately stored as :
<html>this is a <BR>page break <IMG border="0" src="" </html>
I would like to disable the conversion to keep the content XHTML compliant (as is applied by the TinyMCE editor I am using). Can you direct me to the right place in the source?
Regards,
Miles.
IMPORTANT: This e-mail, including any attachments, may contain private or confidential information. If you think you may not be the intended recipient, or if you have received this e-mail in error, please contact the sender immediately and delete all copies of this e-mail. If you are not the intended recipient, you must not reproduce any part of this e-mail or disclose its contents to any other party.
This email represents the views of the individual sender, which do not necessarily reflect those of education.au limited except where the sender expressly states otherwise.
It is your responsibility to scan this email and any files transmitted with it for viruses or any other defects.
education.au limited will not be liable for any loss, damage or consequence caused directly or indirectly by this email.
