Browse files

Merge pull request #82 from akzhan/patch-1

Minor update of readme headers (to Markdown).
  • Loading branch information...
2 parents 0b61e6e + 6e5fa62 commit fe19e542e097d8af4b69ad88930c09e657898455 @brianmario committed Sep 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2
@@ -224,7 +224,7 @@ str = Yajl::Encoder.encode(obj)
You can also use `Yajl::Bzip2::StreamWriter` and `Yajl::Deflate::StreamWriter`. So you can pick whichever fits your CPU/bandwidth sweet-spot.
-=== HTML Safety
+### HTML Safety
If you plan on embedding the output from the encoder in the DOM, you'll want to make sure you use the html_safe option on the encoder. This will escape all '/' characters to ensure no closing tags can be injected, preventing XSS.
@@ -236,7 +236,7 @@ Meaning the following should be perfectly safe:
-== JSON gem Compatibility API
+## JSON gem Compatibility API
The JSON gem compatibility API isn't enabled by default. You have to explicitly require it like so:

0 comments on commit fe19e54

Please sign in to comment.