etc
jquery tmpl 에서 html 넣기
드미트리우스 존슨
2018. 4. 27. 15:45
만약 데이타 content 가 "hello<br/>everyone!" 이고 jquery tmpl 에서 html 태그로 삽입하고 싶다면??
${content}
대신에
{{html content}}
이렇게 tmpl 코드를 작성하고 바인딩하면 html 로 바인딩이 된다.
출처 : https://stackoverflow.com/questions/5618868/jquery-tmpl-how-do-i-render-html?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa