مقالة مقدمة من wulin.com (www.vevb.com): تحويل الترميز الشائع لـ HTML.
يتم توفير مقتطف الرمز هذا بواسطة موقع تدريس الويب. var charsing = (function () {function toascii (str) {return this.tonormal (str) .replace (/[^/u0000-/u00ff]/g ، function () {return escape (edation [0]). استبدال (/(؟: ٪ u) ([0-9a-f] {4})/gi ،/$ 1 ؛) ؛ this.tonormal (str) .replace (/[^/u0000-/u00ff]/g ، function () {expression [0]). استبدال (: ٪ u) ([0-9a-f] {4})/gi ، // u $ 1)}) ؛ str.replace (/(؟:) ([0-9a-f] {4}) ؛ | (؟: // u) ([0-9a-f] {4}) this.tonormal (str) .replace (/[^/u0000-/u00ff]/g ، function () {عودة الهروب (الوضع [0]). tonormal ، tocss: tocss} ؛ console.log (encoding.toascii (安体)) ؛ console.log (encoding.tounicode (安体)) ؛ console.log (envoding.tonormal (安体)) ؛ console.log (encoding.tounicode (安体)) ؛ console.log (encoding.tounicode (安体)) ؛ console.log (envoding.tonormal (安体)) ؛ console.log (encoding.tounicode (安体)) ؛ console.log (encoding.tocss ('arial ، helvetica ، song font ، sans-serif')) ؛