travelI'm on Holidays until the 22th august.

The questions posted during this period will receive no answer, so please be patient and wait before posting in the forum. Thank you

New registrations are suspended during this period

Je suis en vacances jusqu'au 22 aout.

Je ne répondrai à aucune question postée durant cette période. Merci d'attendre mon retour. Merci

Les inscriptions sur le site sont suspendues pendant cette période

 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: strip_tags

strip_tags 31 May 2022 14:07 #64605

  • gopalji
  • gopalji's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
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

Please Log in to join the conversation.

strip_tags 31 May 2022 17:55 #64607

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 26633
  • Karma: 427
  • Thank you received: 3415
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

Please Log in to join the conversation.

strip_tags 01 Jun 2022 10:11 #64619

  • gopalji
  • gopalji's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
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
Attachments:

Please Log in to join the conversation.

strip_tags 02 Jun 2022 18:40 #64649

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 26633
  • Karma: 427
  • Thank you received: 3415
thanks, I will try to check that in the next weeks
Joomlack Webmaster and Developer

Please Log in to join the conversation.

strip_tags 20 Jun 2022 08:40 #64796

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 26633
  • Karma: 427
  • Thank you received: 3415
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

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.204 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 142 guests and no members online