Jump to content
php.lv forumi

strip_tags + obligāts noslēdzošais tags


kechums

Recommended Posts

Vai ar pliku strip_tags var panākt, ka obligāti ir nepieciešams noslēdzošais tags, lai teksts būtu boldēts vai jeb kāds cits? Ja tik vienkārši to nevar realizēt, palūgšu kādu optimālu variantu.

Ievadot inputā pliku <b>, loģiski, protams, ka viss pārējais paliek boldēts.

strip_tags($teksts, '<b>');

Edited by kechums
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...