diff options
Diffstat (limited to 'lib/html.source.sh')
| -rw-r--r-- | lib/html.source.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh index 7056f24..8f057a0 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -4,6 +4,7 @@ html::encode () { s|\&|\&|g; s|<|\<|g; s|>|\>|g; + s|'\''|\'|g; ' <<< "$@" } @@ -70,7 +71,7 @@ html::make_link () { descr="$link" fi - echo "<a class='textlink' href='$link'>$descr</a><br />" + echo "<a class='textlink' href='$($SED 's/'\''/\'/g' <<< "$link")'>$descr</a><br />" } html::process_inline () { |
