Hm I maybe have a problem
its probably something easy but...
This is my code
$group_id = 0, $max_news_items = 10,$max_news_length = 251, $display_mode = 1, $lang_id = 'AUTO',
$strip_tags = true, $allowed_tags = '<p><a><img>', $custom_placeholder = false,
$sort_by = 1, $sort_order = 1, $not_older_than = 0)
with $max_news_length = 251, whole message is there no nead for cutting even image from short story is there, and everything is nice like on next picture (I put this psichedelic colors for easyer understanding)
Gray color is background color for all the <p> in div anynews.
After that I made a change in $max_news_length = 250
, so the script have to cut the message and make it shorter. I change setting just for 1 character! from 251 to 250.
The image disapear from short story.
Link of that image is counted in that 250 characters (you can see there is no 1 character missing but the half of text), and gray zone iz gone, so I guess <p> disapered somehow.
I take back the maxlength setting to fit the whole short story or put it to -1 and everything is like on picture 1 nice and clean.
Is there some way I can make this to work or I'm just stupid
Sorry for long post but I wanted to bring as more info as I can.