I use simple php parser to load a page, but within the blog post there is a injected fb javascript, the DOM look like this
I tried using jQuery to remove like $('#fb-root')
but when I think back of course it doesn't work, because jQuery run later than the like button plugin.
I do want to return header plain/text because I want to keep the style of some part.
Well, of course you could just use some CSS:
#fb-root { display : none; }
Other than that, you could use an interval to check if "fb-root" has already been written do the document and then remove it... But I wouldn't suggest that since CSS does the job way easier.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.