get_html_translation_table
Returns the conversion table after using htmlspecialchars() and htmlentities()
Output the translation table used by the htmlspecialchars function:
<span class="token php language-php"><span class="token delimiter important"><?php</span> <span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">get_html_translation_table</span> <span class="token punctuation">(</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span> <span class="token comment">// HTML_SPECIALCHARS is the default</span> <span class="token delimiter important">?></span></span>
HTML_SPECIALCHARS translation table:
<span class="token php language-php"><span class="token delimiter important"><?php</span> <span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">get_html_translation_table</span> <span class="token punctuation">(</span> <span class="token constant">HTML_SPECIALCHARS</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>
Show character and entity names:
Array ( ["] => " [&] => & [<] => < [>] => > )
HTML_ENTITIES translation table:
<span class="token php language-php"><span class="token delimiter important"><?php</span> <span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">get_html_translation_table</span> <span class="token punctuation">(</span> <span class="token constant">HTML_ENTITIES</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>
Show character and entity names:
Array
(
["] => "
[&] => &
[<] => <
[>] => >
[ ] =>
[?] => ?
[?] => ¢
[?] => £
[?] => ¤
[?] => ¥
[?] => |
[?] => §
[?] => ¨
[?] => ?
[?] => a
[?] => ?
[?] => ?
[?] => -
[?] => ?
[?] => ˉ
[?] => °
[?] => ±
[?] => 2
[?] => 3
[?] => ′
[?] => μ
[?] => ?
[?] => ·
[?] => ?
[?] => 1
[?] => o
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => à
[?] => á
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => è
[?] => é
[?] => ê
[?] => ?
[?] => ì
[?] => í
[?] => ?
[?] => ?
[?] => D
[?] => ?
[?] => ò
[?] => ó
[?] => ?
[?] => ?
[?] => ?
[?] => ×
[?] => ?
[?] => ù
[?] => ú
[?] => ?
[?] => ü
[?] => Y
[?] => T
[?] => ?
[?] => à
[?] => á
[?] => a
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => è
[?] => é
[?] => ê
[?] => ?
[?] => ì
[?] => í
[?] => ?
[?] => ?
[?] => e
[?] => ?
[?] => ò
[?] => ó
[?] => ?
[?] => ?
[?] => ?
[?] => ÷
[?] => ?
[?] => ù
[?] => ú
[?] => ?
[?] => ü
[?] => y
[?] => t
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[Α] => Α
[Β] => Β
[Γ] => Γ
[Δ] => Δ
[Ε] => Ε
[Ζ] => Ζ
[Η] => Η
[Θ] => Θ
[Ι] => Ι
[Κ] => Κ
[Λ] => Λ
[Μ] => Μ
[Ν] => Ν
[Ξ] => Ξ
[Ο] => Ο
[Π] => Π
[Ρ] => Ρ
[Σ] => Σ
[Τ] => Τ
[Υ] => Υ
[Φ] => Φ
[Χ] => Χ
[Ψ] => Ψ
[Ω] => Ω
[α] => α
[β] => β
[γ] => γ
[δ] => δ
[ε] => ε
[ζ] => ζ
[η] => η
[θ] => θ
[ι] => ι
[κ] => κ
[λ] => λ
[μ] => μ
[ν] => ν
[ξ] => ξ
[ο] => ο
[π] => π
[ρ] => ρ
[?] => ?
[σ] => σ
[τ] => τ
[υ] => υ
[φ] => φ
[χ] => χ
[ψ] => ψ
[ω] => ω
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => –
[?] => —
[?] => '
[?] => '
[?] => ?
[?] => “
[?] => ”
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => …
[?] => ‰
[′] => ′
[″] => ″
[?] => ?
[?] => ?
[ ̄] =>  ̄
[?] => ?
[?] => €
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[←] => ←
[↑] => ↑
[→] => →
[↓] => ↓
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[∈] => ∈
[?] => ?
[?] => ?
[∏] => ∏
[∑] => ∑
[?] => ?
[?] => ?
[√] => √
[∝] => ∝
[∞] => ∞
[∠] => ∠
[∧] => ∧
[∨] => ∨
[∩] => ∩
[∪] => ∪
[∫] => ∫
[∴] => ∴
[~] => ~
[?] => ?
[≈] => ≈
[≠] => ≠
[≡] => ≡
[≤] => ≤
[≥] => ≥
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[⊕] => ⊕
[?] => ?
[⊥] => ⊥
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
[?] => ?
)