If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
This is a field for the user to edit (a profile update form).
I need to remove all <pre> and </pre> tags from that field on page load. Then rewrap the submission in <pre></pre> I know how to rewrap but not how to remove :/
I dont get this, what are all the special characters for? Does it just remove all <pre> and </pre> tags?
and for: inputID.value = "<pre>" + inputID.value + "</pre>"
could I use $newText = "<pre>"".$oldText."</pre>";
?
Thanks!
I haven't tested it (not enough time, at work), but the extra characters (I assume you mean the backslashes) are for escaping, making the <, /, and > characters "literals" instead of programming commands.
It _should_ just remove the "<pre>" and "</pre>" tags from the string.
As far as $newText and whatnot, that looks like PHP, not JavaScript.
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
That should do it. I can never remember if * or ? is "zero or more of the preceeding character", but it's one or the other.
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".