Skip to content

Commit

Permalink
add textarea to code mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasRu committed Aug 24, 2023
1 parent 182eff0 commit 5b03043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/HtmlHelper.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ component {
}


// remove all newlines/tabs and spaces
result = encodeForHTML( result.reReplace( "\s+", " ", "all" ) );
// encode for html everythng that is within bodys
result = encodeForHTML( result );


// unmap all HTML ENTITIES
Expand Down Expand Up @@ -101,7 +101,7 @@ component {


htmlCodeTagMapArray = reFind(
"(?i)(<code.*?\/code>|<pre.*?\/pre>)",
"(?i)(<code.*?\/code>|<pre.*?\/pre>|<textarea.*?\/textarea>)",
result,
1,
true,
Expand Down

0 comments on commit 5b03043

Please sign in to comment.