Url Encode和HTML编码之间的区别

问题描述:

网址编码 HTML Encode

HTML编码转义HTML文档中使用的字符串中的特殊字符,以防止与HTML元素混淆,如更改

HTML Encoding escapes special characters in strings used in HTML documents to prevent confusion with HTML elements like changing

"<hello>world</hello>" 

"&lt;hello&gt;world&lt;/hello&gt;"

URL编码对URL中的字符串值执行类似操作,如更改

URL Encoding does a similar thing for string values in a URL like changing

"hello+world = hello world"


$ b b

to

"hello%2Bworld+%3D+hello+world"