You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phpQuery
Hi,
I have html code in text field. I need to find and replace content of
<div> which has exact id. This div block can have any internal html
code, including internal divs. It does not matter.
I tried to use phpQuery for this purpose. So I search and replace
using pq("#myid").html("mycontent"); Seems it works. But my question
is how can I apply this replacement in my original html text?
Thanks for supporting in advance,
Dmitry
Tobiasz Cudnik
unread,
Oct 23, 2009, 3:45:43 AM10/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phpQuery
Hi,
Export text field ontent into new phpQuery document, make needed
replacements and then send it back to text field. Use functions such
as .val() and ::newDocument().