Difference between revisions of "Template:CleanUpString"

From Pathfinder Wiki
Line 1: Line 1:
<includeonly><onlyinlcude>{{
+
<includeonly><onlyinclude>{{
 
#vardefine: cleanedString|{{#replace|{{{string}}}|&#38;|&}} }}{{
 
#vardefine: cleanedString|{{#replace|{{{string}}}|&#38;|&}} }}{{
 
#vardefine: cleanedString|{{#replace|{{{cleanedString}}}|&#39;|'}} }}</onlyinclude></includeonly>
 
#vardefine: cleanedString|{{#replace|{{{cleanedString}}}|&#39;|'}} }}</onlyinclude></includeonly>
 
This template removes the hexvalue of & and ' characters from strings and replaces them. It is introduced for links because some of them have those in them and won't work if they do.
 
This template removes the hexvalue of & and ' characters from strings and replaces them. It is introduced for links because some of them have those in them and won't work if they do.

Revision as of 18:10, 19 March 2021

This template removes the hexvalue of & and ' characters from strings and replaces them. It is introduced for links because some of them have those in them and won't work if they do.