Fix filter translation scripts
This commit is contained in:
parent
c1965079be
commit
ccb9f29eda
|
@ -65,11 +65,11 @@ function xml_tag()
|
|||
{
|
||||
local name="$1"
|
||||
local text="$2"
|
||||
text=${text//&/&}
|
||||
text=${text//\"/"}
|
||||
text=${text//\'/'}
|
||||
text=${text//</<}
|
||||
text=${text//>/>}
|
||||
text=${text//&/\&}
|
||||
text=${text//\"/\"}
|
||||
text=${text//\'/\'}
|
||||
text=${text//</\<}
|
||||
text=${text//>/\>}
|
||||
text=${text# }
|
||||
echo " <${name}>${text}</$name>"
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ in="$1"
|
|||
function html2ascii()
|
||||
{
|
||||
local text="$1"
|
||||
text=${text//&/&}
|
||||
text=${text//&/\&}
|
||||
text=${text//</<}
|
||||
text=${text//>/>}
|
||||
text=${text//"/\"}
|
||||
|
|
Loading…
Reference in New Issue