Template:HtmlDecode/doc

From Palia Wiki
Jump to navigation Jump to search

Usage

{{HtmlDecode}} is a template that replaces HTML encoded characters with the un-encoded version

This Template was created to handle Magic Words like {{PAGENAME}} that will output HTML-encoded versions of page characters, such as apostrophes. Which can cause some issues with string comparisons.

" (double quote %22) is converted to " (34 is the decimal value of hexadecimal 22); in standard HTML/XML style it could also be converted to ".

& (ampersand %26) is converted to & (38 is the decimal value of hexadecimal 26); in standard HTML/XML style it could also be converted to &. ' (single quote %27) is converted to ' (39 is the decimal value of hexadecimal 27); in standard HTML/XML style it could also be converted to '.

- MediaWiki Encoding Manual

Syntax

{{HtmlDecode|html}}

Examples

Syntax Example
{{HtmlDecode|A & B}}
A & B