ngrunwald / ring-middleware-format

Ring middleware for parsing parameters and emitting responses in JSON or other formats
163 stars 49 forks source link

HTML escape YAML in HTML #23

Closed walkermatt closed 9 years ago

walkermatt commented 10 years ago

Currently characters such as < and > are not displayed when viewing the yaml-in-html response body in a browser as they need to be HTML escaped.

I'd like to propose that the YAML string generated in wrap-yaml-in-html be HTML escaped so that all characters will display as expected. PR to follow.

Deraen commented 9 years ago

Alternative version without dependency implemented in 0d9b488bfc3cfb149cdf6edab84a4c00ec88f55c