strip_tags

strip_tags was created by gopalji

Posted 1 year 9 months ago #64605
Hi Cedric,

just a suggestion: I find it a bit annoying that all html tags are stripped in mod_sliderck/tmpl/default.php. It would be fine to leave at least <br> and <p> tags, so that a little formatting of the text is possible. The most convenient solution would be to provide a text field param to enter the tags that should be left.

Best regards
Franz
by gopalji

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic strip_tags

Posted 1 year 9 months ago #64607
Hi
using <p> or <br> tags would only add some margin depending on the global css of your page
you can do that using CSS to target the title and description, no need to use some html here

The fact is that I can not select which tag to keep or not, it strips everything, or nothing
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by gopalji on topic strip_tags

Posted 1 year 9 months ago #64619
Hi,
I tried it this way: strip_tags($caption, ["<em><br><p><strong><h1><h2><h3><h4><h5><h6>"]), and it does exactly what it should - leaving those elements and removing the rest.

Franz
by gopalji
Attachments:

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic strip_tags

Posted 1 year 9 months ago #64649
thanks, I will try to check that in the next weeks

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic strip_tags

Posted 1 year 9 months ago #64796
Hi
for now I don't have the time to work on that request, so until I do it you can create a template override for the slideshow layout and add this feature to strip the tags for your needs

CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.746 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1005 guests and 2 members online