Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Minor update of readme headers (to Markdown). #82

Merged
merged 1 commit into from

2 participants

@akzhan

No description provided.

@brianmario brianmario merged commit fe19e54 into brianmario:master
@brianmario
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2011
  1. @akzhan
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -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:
</script>
```
-== 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:
Something went wrong with that request. Please try again.