Our Services
Document Services
Adobe® PDF Creation
Document Imaging/Scanning
OCR Scanning
Searchable PDFs
Computer & Networking
Desktop Application Support
Hard Drive Data Recovery
Computer Networking Services
Productivity
Database Development
Variable Data Printing
Website Development
Show All Services
Tech News
Learning
Green Computing Guide
Recycling Consumables
System Admin Guide
Revamp Your IT Infrastructure for Quarantine Telework
Easy Solution for Secure File Server for SOHO
Physical Security Controls to Secure Your Network
Simple Steps to Secure Your Wireless Network
Prevent Data Exfiltration - Disable USB Ports
Block Malicious Ad Servers
Enforced TLS Encryption for Secure Email
What is an Email Message Header?
Analyzing Email Message Headers
Secure Mobile Endpoints with Microsoft 365 Mobile Device Policy
Smartphone Stolen? Wipe It - Remotely
7-Zip File Encryption
Hot, Warm, & Cold Data Backup - A Comprehensive Disaster Recovery
Is Your Printer a Security Breach Waiting to Happen?
Are Your Emails Sent Securely?
Self-Encrypting USB Drives
Windows Command-Line Tools (CMD)
Articles, References, How-To's
Online Tools
Network Tools
Hack/Data Breach Check
Domain Availability
DNS Record Lookup
IPv4 Network Calculator
WhoIs Lookup
Your Password Compromised?
MAC Address Lookup
See more...
Calculators/Generators
ASCII Art
Electric Bill/Energy Calculator
Mortgage/Amortization Calculator
File Download Time
Text to Morse Code
Morse Code Audio Test
Age, Life Expectancy, Death Date
chmod File Permissions
Lat/Long Distance Calculator
Number to Roman Numeral
Random Number Generator
See more...
PHP Functions
addslashes()
crypt()
htmlspecialchars()
md5()
openssl_decrypt
openssl_encrypt
preg_match()
str_word_count()
strlen()
strip_tags()
urlencode()
See more...
Special Tools
Realtime Cyberthreat Map
Support
Support Services Home
Pay Bill
Downloads & Drivers
Manufacturer's Contact
Knowledgebase
Education & Training
Client Access
Client Resource Access
Team MO
Home
>
Resources
>
Online Tools
>
PHP Functions
> strip_tags()
Live Sandbox PHP strip_tags() Function
Jump to other PHP functions:
addslashes() - Add backslashes (\)
base_convert() - Converts a number between two bases
crc32() - Cyclic redundancy checksum
crypt() - Calculate the hash of a string
decbin() - Convert numbers to binary (base-2)
decoct() - Convert numbers to octal (base-8)
dechex() - Convert numbers to hexadecimal (base-16)
dns_get_record() - Retrieves DNS resource
htmlspecialchars() - Convert special characters to HTML entities
lcfirst() - Converts first character to lowercase
md5() - Calculate MD5 hash of a string
openssl_encrypt() - Encrypts plain text data
openssl_decrypt() - Decrypts cipher text
openssl_get_cipher_methods() - Lists available cipher methods
preg_match() - Regular expression (RegEx) match
sha1() - Calculate sha1 hash of a string
str_word_count() - Determines number of words in a string
strlen() - Calculate character length of a string
strip_tags() - Removes HTML and PHP tags from a string
stripslashes() - Removes backslashes (\)
strrev() - Reverses order of a string
strtolower() - Convert string to all lowercase
strtoupper() - Convert string to all uppercase
ucfirst() - Converts first character to uppercase
ucwords() - Converts first letter of each word to uppercase
urlencode() - Encodes a string for use in URL query
urldecode() - Decodes the query part of a URL string.
PHP strip_tags() Function
Instructions/Notes
strip_tags(
$your_string
)
— Strip HTML and PHP tags from a string.
$your_string:
Example: An input of
<body><table width="200" border="1"><tr><td>
<h1>What is Malware?</h1>
<p>Malware is a generic term for bad software. The word malware comes from the words <strong>mal</strong>icious
and soft<strong>ware</strong>.</p>
</td></tr></table></body>
will result in
What is Malware? Malware is a generic term for bad software. The word malware comes from the words malicious and software.
Check to clear history
Execute
Suggested Reading
PHP Cookbook: Solutions & Examples
(Amazon Affiliate Link)