Written by
flask-style
on
on
[Python] flask의 autoescape 사용하지 않기
[Python] flask의 autoescape 사용하지 않기
{% autoescape false %} autoescaping is disabled here {{ will_not_be_escaped }} {% endautoescape %}
<> "" '' & 과 같이
마크업에서 오류를 일으킬 만한
문자들을 변환 시켜주는
기능이 autoescape이다.
그걸 꺼주는 코드가 위에 코드이다.
이걸 사용하면 문자안에 같은
오류를 일으킬 만한 문자를
변환하지 하지 않고
그대로 문서에서 읽는다.
from http://insubkim.tistory.com/88 by ccl(A) rewrite - 2021-11-10 19:26:50