Javascript之html轉(zhuǎn)化為ubb碼(html)
當(dāng)前位置:點(diǎn)晴教程→知識管理交流
→『 技術(shù)文檔交流 』
[p]function html_trans(str) {[br] str = str.replace(/\r/g,"");[br] str = str.replace(/on(load|click|dbclick|mouseover|mousedown|mouseup)="[^"]+"/ig,"");[br] str = str.replace(/
Copyright 2010-2025 ClickSun All Rights Reserved |