Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added readme

  • Loading branch information...
commit c77844568b7d1b40cafd61b68cab1b89d9190497 1 parent 0f6d09c
Christopher Johnson authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.