• Hi,

    Great plugin! Really helps me make some useful pages for my site without having to create actual php files on the server (which is a huge hassle when you don’t have access to an FTP client 🙂 )

    Anyways, my issue appears to be that when I attempt to echo a base64 encoded string (in this case an image), I get
    s added to the string. This only appears when I use [php] on the pages themselves. When using a snippet, [php snippet=2], the image outputs just fine.

    This is the relevant line in my code:
    echo '<img src="' . $v['favicon'] . '" width="32" height="32">';

    I can provide more code if needed.

    If this issue isn’t related to your plugin, sorry just go ahead and ignore this.

    I believe it is related though because if I copy the correct string and do <img src="..."> in the text editor it works fine.

    Thanks.

    https://wordpress.org/plugins/php-code-for-posts/

Viewing 1 replies (of 1 total)
  • Thread Starter app1egenius93

    (@app1egenius93)

    No longer sure what exactly is going on…

    Downloaded “Text Control” plugin and set the page “No Character Encoding” and the image is showing fine now. Not sure what caused it, must have been a combination of how wordpress formatted things sent through plugins? Not sure. But it works now so yeah 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Base64 Encoded Image String receives’ is closed to new replies.