By forumer on
It should be the <!-- example --> tags right? But even in Full HTML with HTML filter disabled, drupal pages can't read this code and it's escaping it making these tags visible for all to see along with my comments.
Is there a way I can hide my comments without them showing up?
Comments
help
help
=-=
I's suppose you can create a new filter add add it to the FULL HTML format that removes these?
I don't believe core input formats/filters will remove them. They would have to be in your tpl.php file to not be rendered to the screen.
I asked this other day, but
I asked this other day, but didn't get a reply.
It would sometimes be very handy to make comments to yourself or another admin when writing a node.
For instance, I use FCKEditor, and wanted to leave myself a message in the source:
<!-- don't disable the full-html filter after editing this page; it will break -->However, something tried to unsuccessfully strip the comment tag.
When the page was viewed I saw something like:
don't disable the full-html filter after editing this page; it will break ->2I think it was FCKEditor which interfered with drupal core stripping the tag, and so it ended up corrupted.
My reason for this is that, if you type a comment tag in this forum, it is stripped cleanly.
My only thought is that the comment tag is stripped so that users can't leave vulgar hidden messages in their posts which will only display when someone views the source of the website or an admin edits the post?
=-=
what you have there is basically a pseudo html tag. browsers don't render it but drupal input format , which can be argued as an output format is stripping to be on the safe side. I'd venture guess (ie: not tested) that if switched to php filter the comments may not show because they won't be rendered by the browser and won't be stripped coming back out of the database. Though if that works I don't suggest switching to a php input format as a workaround.
The site doc module is the way you may want to go to document things on pages. Much like log messages upon editing handbook pages.
Under input formats
Under input formats settings, there's an option to disable Escaping HTML codes or something, dont remember.
Another way if you're using this site for yourself, enable PHP filter.
Enclose your comments with
/* Example comment here. */-----
Drupal theming services, PSD to Drupal
http://kahthong.com