PHP

How to remove HTML tags in text string?

CK CK 3776 
Created at  
405 0 0
strip_tags() function is the simplest & fast PHP function to remove HTML tags in text string.

Here's the simple example.

      $m_school = strip_tags( $m_school);


Tags File Attributes File Creation Time File Date Time PHP strip_tags Facebook X
Comments 0
Similar posts
  1. Get Remote IP Address in PHP
    493
  2. Displays the html tags without rendering on a webpage
    349
  3. Directory listing in PHP
    511
  4. Seconds to String in PHP
    434
  5. PHP socket programming to get content with post method
    407
  6. Email Validation Snipet in PHP
    378
  7. PHP function converts new line to BR tag
    558
  8. Date format validation in PHP
    570
  9. How to delete file on certain path ?
    386
  10. How to get the duration between days in PHP
    417
  11. ASCII Artwork Generator from image file
    469
  12. Human readable random string for captchas in PHP
    557
  13. Uploading files to Amazon S3 with REST API in PHP
    837
  14. How to limit by Timeout when opening URL ?
    454
  15. How to put timeout when opening URL by fopen ?
    440
  16. How to convert W3C Date Time Format ?
    452
  17. Get the actual filesize for a size above 2GB in Windows
    424
  18. HTML redirection in PHP
    398
  19. ISO 8601 format time format string conversion
    532
  20. How to download a file from a certain URL to server ?
    418
  21. How to extract file name from given URL ?
    441
  22. File downloading via HTTP
    444
  23. How to block a connection from the certain site ?
    348
  24. XMLRPC example
    760
  25. How to upload attachments such as image by metaWeblog API ?
    391
  26. How to post blog content by metaweblog API ?
    484
  27. Posting to a Wordpress Blog Via XMLRPC Using Blogger API
    762
  28. foreach loop
    441
  29. Can PHP switch in strings ?
    389
  30. PHP Switch Example
    426
  1. Apache server unstable detection and the related server(mysql, apache) restart automatically
    530
  2. How to set AUTO_INCREMENT ID in mySQL ?
    605
  3. Function can extract file name in string having full path in PHP
    565
  4. How to create private URL on S3/CloudFront with time-limit ?
    914
  5. Parsing XML in PHP
    1,188
  6. Unzip a ZIP file in PHP
    498
  7. Uploading files to Amazon S3 with REST API in PHP
    837
  8. Human readable random string for captchas in PHP
    557
  9. How to get browser information in PHP?
    850
  10. How to get the duration between days in PHP
    417
  11. Date format validation in PHP
    570
  12. PHP function converts new line to BR tag
    558
  13. Email Validation Snipet in PHP
    378
  14. PHP socket programming to get content with post method
    407
  15. Get Remote IP Address in PHP
    493
  16. Directory listing in PHP
    511
  17. Seconds to String in PHP
    434
  18. How to delete file on certain path ?
    386
  19. ASCII Artwork Generator from image file
    469
  20. How to limit by Timeout when opening URL ?
    454
  21. How to put timeout when opening URL by fopen ?
    440
  22. How to convert W3C Date Time Format ?
    452
  23. Get the actual filesize for a size above 2GB in Windows
    424
  24. HTML redirection in PHP
    398
  25. ISO 8601 format time format string conversion
    532
  26. How to download a file from a certain URL to server ?
    418
  27. How to extract file name from given URL ?
    441
  28. File downloading via HTTP
    444
  29. XMLRPC example
    760
  30. How to upload attachments such as image by metaWeblog API ?
    391
Recently updated
  1. How do I create animated background for Google Meet?
    18,998
  2. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    192
  3. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    75
  4. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    151
  5. Array of arguments passed to script in PHP
    83
  6. Invalid Auction Storms in Ad Tech
    91
  7. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    194
  8. The Two Clocks of Ad Server Architecture
    61
  9. Frequency Cap Architecture Overview
    505
  10. Collecting Proof-of-Play from 100,000 Screens
    139
  11. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    276
  12. What is RedisVL?
    102
  13. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    218
  14. TPU & GPU Cluster Management Tools
    229
  15. The Concept of Scaffolding in AI Agents
    217
  16. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    568
  17. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    246
  18. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    321
  19. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    196
  20. Machine Learning: Training vs. Ranking
    200
  21. The Continuous Learning Machine: Designing a Loop That Actually Turns
    212
  22. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    188
  23. Designing a Data Curation System Around a Vector Database
    212
  24. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    228
  25. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    646
  26. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    179
  27. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    203
  28. Understanding Data Lineage
    251
  29. System Requirements and Architecture: Intelligent Priority-Based Scheduler
    159
  30. GPU & LLM Cluster Infrastructure & Task Scheduling Architecture
    229