Hello Friends,

i want to allow '<br>' tags in my string not '<br />'...!
i want to also disallow '<br />'.
when i use strip_tags($string, '<br>'). in this case strip_tags also allow '<br />' tags.

Please, help me...!

Recommended Answers

All 2 Replies

str_replace('<br />','<br>',$string);

Hope this help!

commented: helpful reply...! thanks Zero13 +2

great...! thanks dear. my problem solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.