This content has been marked as final. Show 5 replies
Sometime they enter the html code, so i am looking for someting to
script out all the html from the comments but i don't know how. Is
anyone has experiences on this?
A quick and easy way to render the HTML ineffective is to wrap the input
and/or output statements with the HTMLCodeFormat() or HTMLEditFormat()
functions. These functions escape all the angle brackets(<|>) and other
symbols so that the HTML code is just displayed, not rendered by the
If you want to strip the HTML that takes a bit more effort, but I like
using these functions as a last line of defense even when using other
is there any example out there that you know? or can you provide me an example?
is there any example out there that you know? or can you provide me an
Example of what? Using those functions.
Change something like this:
And|Or change something like this:
INSERT INTO aTable
</cfquery><!--- Note: this could considerable lengthen the text input
into the database. Size the field accordingly. --->
One would want to add a corresponding change to any related UPDATE
queries as well.
This regex effectively removes all html from a string.
<cfset string2 = REReplaceNoCase(string1,"<[^>]*>","","all") />