more sophisticated escape_upphtml in gmi2upphtml
This commit is contained in:
@@ -53,7 +53,14 @@ close_all_open_blocks()
|
||||
|
||||
escape_upphtml()
|
||||
{
|
||||
echo "$1" | sed "s/\`/\\\\\`/g" | sed "s/\"/\\\\\"/g" | sed "s/\\\$/\\\\\$/g"
|
||||
echo "$1" \
|
||||
| sed "s/&/\\&/g" \
|
||||
| sed "s/</\\</g" \
|
||||
| sed "s/>/\\>/g" \
|
||||
| sed "s/\"/\\"/g" \
|
||||
| sed "s/'/\\'/g" \
|
||||
| sed "s/\`/\\`/g" \
|
||||
| sed "s/\\\$/\\\\\$/g"
|
||||
}
|
||||
|
||||
close_all_open_blocks_except()
|
||||
|
||||
Reference in New Issue
Block a user