Mercurial > hg > egg-tcls
comparison utillib.tcl @ 609:a5e83abb51a8
utillib: Add one HTML entity conversion.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 09 Feb 2021 00:13:42 +0200 |
parents | 543f1d72361e |
children | a5c929a473ac |
comparison
equal
deleted
inserted
replaced
608:179fc8150090 | 609:a5e83abb51a8 |
---|---|
16 append utl_html_ent_str "|”|\"|‘|'|ä|ä|·|*|®|®|´|'" | 16 append utl_html_ent_str "|”|\"|‘|'|ä|ä|·|*|®|®|´|'" |
17 append utl_html_ent_str "|ö|ö|ö|ö|#|#|'|'|­||–|-" | 17 append utl_html_ent_str "|ö|ö|ö|ö|#|#|'|'|­||–|-" |
18 append utl_html_ent_str "|…|...|…|...|"|\"|­||@|#" | 18 append utl_html_ent_str "|…|...|…|...|"|\"|­||@|#" |
19 append utl_html_ent_str "| | |£|£|&|&|ž|ž|Ä|Ä|º|º" | 19 append utl_html_ent_str "| | |£|£|&|&|ž|ž|Ä|Ä|º|º" |
20 append utl_html_ent_str "|…|...|/|/| | |"|\"|'|\"" | 20 append utl_html_ent_str "|…|...|/|/| | |"|\"|'|\"" |
21 append utl_html_ent_str "|‘|'|’|'|”|\"|š|š|Š|Š|%|%" | 21 append utl_html_ent_str "|‘|'|’|'|”|\"|š|š|Š|Š|%|%|Ö|Ö" |
22 | 22 |
23 set utl_html_ent_list [split [encoding convertfrom "utf-8" $utl_html_ent_str] "|"] | 23 set utl_html_ent_list [split [encoding convertfrom "utf-8" $utl_html_ent_str] "|"] |
24 | 24 |
25 | 25 |
26 # Convert given string, containing HTML/XML style entities into a normal | 26 # Convert given string, containing HTML/XML style entities into a normal |