html comment tag disappears from saved articles

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
Blueda145
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Sep 29, 2009 12:40 pm

html comment tag disappears from saved articles

Post by Blueda145 » Fri Dec 18, 2009 4:35 am

Is there any way to keep Joomla! from removing comment tags written directly into articles?

User avatar
sakiss
Joomla! Explorer
Joomla! Explorer
Posts: 252
Joined: Wed Aug 20, 2008 4:09 pm

Re: html comment tag disappears from saved articles

Post by sakiss » Fri Dec 18, 2009 12:51 pm

You mean HTML comments <!--something--> ?

rhlie
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Dec 17, 2009 5:00 pm
Contact:

Re: html comment tag disappears from saved articles

Post by rhlie » Fri Dec 18, 2009 1:05 pm

In the article manager (admin) you can click the parameters button.

Then go down to Filter groups and make sure your usergroup is not selected.
CSA and Founder of Office123
Check out http://www.office123.net/s/jsig for 100% free accounts for our joomla-based hosted service.
It includes a complete joomla setup ready to go and a sub-domain. All free, no strings attatched!

Blueda145
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Sep 29, 2009 12:40 pm

Re: html comment tag disappears from saved articles

Post by Blueda145 » Fri Dec 18, 2009 2:30 pm

Thank you both for your quick replies.

Yes, I meant <!-- something -->.

I am creating articles as the Super Administrator. I have set the parameters to "White List". I added all of the html tags I expect to use. I even tried adding <!-- and --> to the list, yet when the article is saved the comment information is still removed.

What is curious is that I can uncomment a piece of code like <!--<p class="spacer"> </p>--> and it will be preserved when the article is saved. However, if I comment the end of a </div> tag like this </div><!-- END OF DIV -->, the <!-- END OF DIV --> comment is removed when the article is saved.

Any ideas?

User avatar
DarkBlaze
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Mon Jan 26, 2009 9:04 am
Contact:

Re: html comment tag disappears from saved articles

Post by DarkBlaze » Wed Aug 31, 2016 7:31 am

Bump...

Text filters in global configuration set to No Filter, and saving without editor strips out part of a comment...

<!-- TEST -->

becomes

!-- TEST -->

after saving.....

Using J3.6.2

User avatar
DarkBlaze
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Mon Jan 26, 2009 9:04 am
Contact:

Re: html comment tag disappears from saved articles

Post by DarkBlaze » Thu Sep 01, 2016 8:55 am

Found the problem..... It's not Joomla, and it's not editor....

The problem is the filter in XML defined for your field....

Change your filter in form XML to "RAW", and it will be fine...

I tried with "safehtml", and it's stripping out part of comment, but with "raw" it works fine... Hope it helps....


Locked

Return to “General Questions/New to Joomla! 1.5”