liquid_feedback_frontend
view static/wysihtml/simple.js @ 1717:f41f5c5f8fa2
User cannot be not entitled to vote in root level
| author | bsw | 
|---|---|
| date | Mon Sep 27 12:44:07 2021 +0200 (2021-09-27) | 
| parents | 32cc544d5a5b | 
| children | 
 line source
     1 /**
     2  * Very simple basic rule set
     3  *
     4  * Allows
     5  *    <i>, <em>, <b>, <strong>, <p>, <div>, <a href="http://foo"></a>, <br>, <span>, <ol>, <ul>, <li>
     6  *
     7  * For a proper documentation of the format check advanced.js
     8  */
     9 var wysihtmlParserRules = {
    10   tags: {
    11     strong: {},
    12     b:      {},
    13     i:      {},
    14     em:     {},
    15     br:     {},
    16     p:      {},
    17     div:    {},
    18     span:   {},
    19     ul:     {},
    20     ol:     {},
    21     li:     {},
    22     a:      {
    23       set_attributes: {
    24         target: "_blank",
    25         rel:    "nofollow"
    26       },
    27       check_attributes: {
    28         href:   "url" // important to avoid XSS
    29       }
    30     }
    31   }
    32 };
