Browse files

Added readme

  • Loading branch information...
1 parent 0f6d09c commit c77844568b7d1b40cafd61b68cab1b89d9190497 @tenorviol committed Nov 13, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/
15 test/
@@ -0,0 +1,15 @@
+`echo` is evil. It is the exact right way to dump binary data to the output stream.
+Don't use it. Use one of these instead:
+* `out\text($s)` to write html-encoded text
+* `out\raw($s)` to write text as-is, including html or whatever
+* `out\binary($s)` to echo binary data
+* `out\script($s)` to write raw text into a script element
+* `out\style($s)` to write raw text into a style element
+* `out\cdata($s)` to write raw text into a cdata element
+All functions except binary enforce strict UTF-8 compliance,
+replacing non-utf8 characters with the unicode replacement character U+FFFD

0 comments on commit c778445

Please sign in to comment.