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

    (@mac2net)

    OK, I succeeded.

    Now I need help getting it to display in a Crayon Syntax Highlighter.. Base64 encoded content seems to kill it. I posted a topic in the plugin’s support forum.

    FWIW, to get the plugin to work with a variable, I pulled away the class and modified the parse function as follows:

    $my_content = preg_replace_callback(
    			'|<img(.*)src=["\'](.*?)["\'](.*)/>|i',
    			create_function(
    				'$matches',
    				'return "<img$matches[1]src=\'".(my_fetchurl($matches[2]))."\'$matches[3]/>";'
    			),
    			$my_content
    		);

    Thanks
    Mike

Viewing 1 replies (of 1 total)
  • The topic ‘Encoding images in a variable’ is closed to new replies.