How can I put a HTML comments into the block?
kenorb - January 22, 2009 - 02:38
| Project: | Drupal |
| Version: | 6.9 |
| Component: | filter.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
How can I put a HTML comments into the block?
I've tried in normal way:
<!-- something -->But it's visible.
It's very weird.
For me Full HTML should be Full HTML without appearing and disappearing or some magic translations (#362361: Submiting the form is going somewhere else).
Instead of pasting the proper Raw HTML code you are spending time on converting it to "Drupal-HTML".
Any suggestions how to make a comment in block?

#1
Apart from the solution I posted in #362361: Submiting the form is going somewhere else you can also go to admin/settings/filters and edit the filter you are using. try turning off some of the filters that are active within that input filter.
Please post back if that works for you.
- Arie
#2
Can be related to: #343239: Code Filter should not strip HTML <!--comments-->
But I'm not sure.
#3
#4
@kenorb: Did you het this resolved or are you sill experiencing this problem?
- Arie
#5
Yes, still and it's annoying;/
I'm pasting some ready-made html code, selecting full HTML and I see only comments.
Example block:
<div style="display:block; width:187px; height:235px;font-family:Verdana, Arial, Helvetica, sans-serif;background:url(http://www.tfl.gov.uk/tfl/gettingaround/journeyplanner/banners/images/jp...) #fff no-repeat; font-size:90%;"><div style="display:block;padding:35px 15px 15px 15px;"><strong style="color: rgb(36, 66, 102); text-align: center; display: block;">Journey Planner</strong><form action="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2" id="jpForm" method="post" target="tfl" style="margin:5px 0 0 0 !important;padding:0 !important;"><input type="hidden" name="language" value="en" /> <!-- in language = english --><input type="hidden" name="execInst" value="" /> <input type="hidden" name="sessionID" value="0" /> <!-- to start a new session on JP the sessionID has to be 0 --> <input type="hidden" name="ptOptionsActive" value="-1" /> <!-- all pt options are active --> <input type="hidden" name="place_origin" value="London" /> <!-- London is a hidden parameter for the origin location --> <input type="hidden" name="place_destination" value="London" /><div><input type="text" name="name_origin" style="width:155px !important;" value="From"/></div><div><select style="width:155px !important;" name="type_origin"><option value="stop">Station or stop</option><option value="locator">Postcode</option><option value="address">Address</option><option value="poi">Place of interest</option></select><input type="text" name="name_destination" style="width:155px !important;" value="Enter destination"/></div><div><select style="width:155px !important;" name="type_destination"><option selected="selected" value="stop">Station or stop</option><option value="locator">Postcode</option><option value="address" >Address</option><option value="poi">Place of interest</option></select></div><input type="submit" title="Leave now" value="Leave now" style="width:155px !important;"/><div style="margin-top:5px;text-align:center;"><a style="text-decoration:none; color:#113B92;font-size:90%;background:#fffbfc;white-space:nowrap;" target="tfl" href="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en&ptOptionsActive=1" onclick="javascript:document.getElementById('jpForm').ptOptionsActive.value='1';document.getElementById('jpForm').execInst.value='readOnly';document.getElementById('jpForm').submit(); return false">Advanced options</a></div></form></div></div>#6
It's Filter issue. I've disabled all filters apart of 'URL filter'.
Probably the whole argoritm of URL filtering should be rewrited (#362629: URL Filter doesn't make links if the chars are international).
Update: And the same situation when activated 'HTML corrector'.
#7
#222926: htmlcorrector filter escapes HTML comments