cjlee112 / spnet

selected papers network web engine
http://thinking.bioinformatics.ucla.edu/2011/07/02/open-peer-review-by-a-selected-papers-network/
GNU General Public License v2.0
40 stars 11 forks source link

review HTML templates and add HTML escaping if needed #32

Open cjlee112 opened 11 years ago

cjlee112 commented 11 years ago

From the Jinja2 docs:

What to escape? If you have a variable that may include any of the following chars (>, <, &, or ") you have to escape it unless the variable contains well-formed and trusted HTML. Escaping works by piping the variable through the |e filter: {{ user.username|e }}.

Note: Google+ text should be "trusted HTML", as they only allow flat text, and do the URL recognition themselves.