개인적인 정리

HTML Escape Characters: Complete List 본문

HTML & CSS

HTML Escape Characters: Complete List

yeon.Biju 2016. 11. 11. 15:57

http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php




  공백

&lt; < 

&gt; >

&amp; &

&quot; : 쌍따옴표 "

가운데 점 : 취&middot;창업형


copyright  © : &copy;



function safe_tags(str) {

    return str.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;') ;

}



\ (통화 원 표시) : &#8361;




추가


ampersand (&) is escaped to &amp;

double quotes (") are escaped to &quot;

single quotes (') are escaped to &apos; 

less than (<) is escaped to &lt; 

greater than (>) is escaped to &gt;

Comments