Please see attached image. I'm creating a chinese jokes website and have the content (the joke) converted to image so that people without proper chinese encoding are still able to see it. However there's a
tag everytimme the line breaks in the html... anyway to remove it?

I used the module textimage_autoinsert together with this to have the content show as image.

Thanks!

CommentFileSizeAuthor
br tags.jpg45.41 KBiori57

Comments

markwittens’s picture

I fixed a similar problem by editing textimage_autoinsert.module:

Around line 576 you'll find the line:
foreach ($autoinsert['settings']['variables']['vars'] as $key => $val) {

Add the following line after that:
$vars[$key] = html_entity_decode(strip_tags($vars[$key]));

Around line 600 you'll find the lines:
$return_data .= $matches[1];
$return_data .= $matches[2];

Add the following:
$matches[3] = html_entity_decode(strip_tags($matches[3]));

Your text might all be on one line after this, if you can put every line in it's own HTML tag it should work fine.

deciphered’s picture

Project: Textimage » Textimage autoinsert (abandoned)
Version: 6.x-2.1 » 6.x-2.0-beta1

Moved to Textimage Autoinsert.

danielb’s picture

Ok I guess there needs to be options for this kind of thing, br to nl, and striptags in general.

danielb’s picture

Status: Active » Fixed

I have added some options for this in the new release.

iori57’s picture

Thanks! I will try it later! :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.