X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=d37d1fa561b137e842093357f9484769a5d124c8;hb=9a2257958f77e293a6f49d741405521f02855896;hp=bad7b4b0a4f26386b8f160861dd5b5da2acdb982;hpb=71fc7c41c946279b6d1e1072f72ad3f5aa6a7b39;p=wfpl.git diff --git a/encode.php b/encode.php index bad7b4b..d37d1fa 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. # @@ -116,54 +125,45 @@ function enc_upper($str) { return strtoupper($str); } -function enc_ddmmyyyyhhmm($seconds) { - return date('m/d/Y g:ia', (int)$seconds); -} - - -# display