Difference between revisions of "Template:CleanUpString"
From Pathfinder Wiki
DesignerThan (talk | contribs) (Created page with "<includeonly><onlyinlcude>{{ #vardefine: cleanedString|{{#replace|{{{string}}}|&|&}} }}{{ #vardefine: cleanedString|{{#replace|{{{cleanedString}}}|'|'}} }}</onlyinclud...") |
DesignerThan (talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinlcude>{{ | <includeonly><onlyinlcude>{{ | ||
#vardefine: cleanedString|{{#replace|{{{string}}}|&|&}} }}{{ | #vardefine: cleanedString|{{#replace|{{{string}}}|&|&}} }}{{ | ||
− | #vardefine: cleanedString|{{#replace|{{{cleanedString}}}|'|'}} }}</onlyinclude><includeonly> | + | #vardefine: cleanedString|{{#replace|{{{cleanedString}}}|'|'}} }}</onlyinclude></includeonly> |
This template removes <nowiki>'</nowiki> and <nowiki>&</nowiki> characters from strings. It is introduced for links because some of them have those in them and won't work if they do. | This template removes <nowiki>'</nowiki> and <nowiki>&</nowiki> characters from strings. It is introduced for links because some of them have those in them and won't work if they do. |
Revision as of 18:07, 19 March 2021
This template removes ' and & characters from strings. It is introduced for links because some of them have those in them and won't work if they do.