• Resolved p3hndrx

    (@p3hndrx)


    Greetings—
    I am generating thumbnails based on the first image in the post.
    The image URLs contain some special characters that are stripped.

    How can I pass the literal string: <img src="my_url_with_special_chars" />?

    • This topic was modified 7 years, 8 months ago by p3hndrx.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter p3hndrx

    (@p3hndrx)

    I think this works…:
    preg_match_all( '<img.+src=[\'"]([^"]+)[\'"].*>', $post_content, $matches );

    Under media.php

    Thumbnails need to be generated…

    Plugin Author Ajay

    (@ajay)

    Can you show me an example of this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single Quotes in Thumbnail’ is closed to new replies.