2013-02-22 25 views
0

美好的一天。檢查html中是否存在單詞,並在該單詞後附加註冊商標符號

是否可以檢查HTML頁面中是否存在單詞,如果存在該單詞,則在該單詞之後追加上標註冊商標符號

+1

是的,這是可能的。你試過什麼了? – Teemu 2013-02-22 09:40:50

+0

http://stackoverflow.com/questions/748309/find-words-in-html-page-with-javascript這個鏈接將幫助你....找到 – sasi 2013-02-22 09:41:12

+0

感謝您的幫助,但我意識到一段時間後我不需要那樣做。不管怎麼說,還是要謝謝你。 – user1737222 2013-02-25 07:02:26

回答

0

PHP:

$document = 'A string containing the contents of the html document.'; 
str_replace('Nike','Nike™',$document);