Login
Remember
Register
References
Ranks
Add reference
PHP - strip_tags() function to strip HTML from string
0
votes
331
views
added
Sep 24, 2019
in
PHP
by
lcjr
First Warrant Officer
(
11,760
points)
//limit text up to 350 + strip the HTML <?php echo substr(strip_tags($description),0,350); ?>
php
condition
show
data
limit
substr
strip_tags
Related reference
PHP - substr() function to limit text
PHP - Conditional for show/hide multiple values
PHP - Conditional to show/hide value
PHP - Conditional show/hide data by date
PHP - Conditional:: Show counter when images more than 4
PHP - Conditional:: show URL if value !empty
PHP - epoch to date with PHP substr
PHP - HTML in PHP echo
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
All categories
API
(35)
React
(149)
Javascript
(100)
Next JS
(10)
jQuery
(176)
CSS
(141)
SCSS
(25)
UI design
(1)
Vue
(25)
JSX
(11)
ES6
(8)
Regex
(6)
PHP
(61)
mySQL
(9)
Drupal
(15)
Bootstrap
(22)
Repository
(38)
Software & tools
(38)
Google tools
(28)
Plugins
(13)
Gulp
(9)
NPM
(9)
Node JS
(7)
CMS
(9)
Command-line
(7)
Database
(2)
Domain & hosting
(16)
Elixir
(1)
HTML
(21)
Networking
(4)
Python
(0)
Server issues
(12)
VM & Remote desktop
(2)
VSCode
(6)
Windows
(10)
XSLT
(5)
General
(868)
...