Understanding HTML Parser replace and images
-
I’m trying to understand the parser with no luck. I’m trying to grab a post image, post title and post text from a news page.
This is what I’m using:
ginner|0|div|file-image|0|1| ginner|0|h1|article-title|0|1| ginner|0|div|field-type-text-with-summary|0|1| wrap|1,2,3|{ogb-0}{ogb-1}{ogb-2}|
Everything works but the image has a relative path so I’m trying to add this:
replace|1|src="|src="https://mainsite.com|
But then the output is or only the image or a full original page (ignoring my ginners) depening if I put it last or at beginning.What am I doing wrong? I just want to replace the url of the img tag which is in the first ginner (file-image).
Also how can I set this image as my post image in WP? I suppose the get image processor does this? But I’m only getting undefined in po[1]images when giving op[0]fulltext as pi[1]html.
Thanks.
- The topic ‘Understanding HTML Parser replace and images’ is closed to new replies.