Sha256: 84cf18e4b3bb399c2e3a73cadc259efcd711104227435ffb4e11fa98f40704e8
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
/** * Very simple basic rule set * * Allows * <i>, <em>, <b>, <strong>, <p>, <div>, <a href="http://foo"></a>, <br>, <span>, <ol>, <ul>, <li> * * For a proper documentation of the format check advanced.js */ var wysihtmlParserRules = { tags: { strong: {}, b: {}, i: {}, em: {}, br: {}, p: {}, div: {}, span: {}, ul: {}, ol: {}, li: {}, a: { set_attributes: { target: "_blank", rel: "nofollow" }, check_attributes: { href: "url" // important to avoid XSS } } } };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wysihtml-rails-0.6.0.beta2 | vendor/assets/javascripts/wysihtml/parser_rules/simple.js |
wysihtml-rails-0.6.0.beta | vendor/assets/javascripts/wysihtml/parser_rules/simple.js |