X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=b73a0ecb430fb9f5577b5dabd66859c0bff2cc89;hb=23ac7dc3675119a6f7a3876837bd6c656b0d2cce;hp=bad7b4b0a4f26386b8f160861dd5b5da2acdb982;hpb=71fc7c41c946279b6d1e1072f72ad3f5aa6a7b39;p=wfpl.git diff --git a/encode.php b/encode.php index bad7b4b..b73a0ec 100644 --- a/encode.php +++ b/encode.php @@ -59,6 +59,15 @@ function enc_htmlbr($str) { return $str; } +# Encode for output in html. Spaces converted to   +# +# Example: +function enc_htmlnbsp($str) { + $str = enc_html($str); + $str = str_replace(' ', ' ', $str); + return $str; +} + # HTML attribute. # @@ -121,49 +130,31 @@ function enc_ddmmyyyyhhmm($seconds) { } -# display