HomeCodding

Questions By
Arjun Nakula
OFFER ₹0

How to remove all the codes and show only strings using PHP


Remove all the codes and show only strings

For example

Hello hero

Ya hello

Only showing

Hello hero Ya hello

06-09-2019, Total 3 Ans Best Answered , 174 views


BEST ANSWER

Use strip_tags

$text '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>';
echo 
strip_tags($text);
echo 
"\n";

// Allow <p> and <a>
echo strip_tags($text'<p><a>');

The above results will echo like this

Test paragraph. Other text
<p>Test paragraph.</p> <a href="#fragment">Other text</a>

Mritunjoy Mushahary
06-09-2019

OTHER ANSWERS

Works perfect Thanks for answer

Arjun Nakula
06-09-2019

This is the Edited 1.

Mritunjoy Mushahary
06-09-2019

Please LOGIN to Answer

OTHER CATEGORIES

Politics/Govt

Total: 8

Music/Movies

Total: 2

News

Total: 1

Sports/Games

Total: 9

Educations

Total: 8

Codding

Total: 132

Science/Tech

Total: 9

Softwares

Total: 22

Hardwares

Total: 2

Websites

Total: 37

SEO

Total: 10

Foods

Total: 2

Health/Fitness

Total: 0

Business/Earnings

Total: 17

Jobs

Total: 2

Cars/Vehicals

Total: 0

Travels

Total: 0

Beauty/Fashions

Total: 0

Lifestyles

Total: 10

Gods/Religious

Total: 6

Others

Total: 4

Events

Total: 0

Recently Asked Questions

Something went wrong If the issue persists, try again in a few hours. Error while trying to Inspect URL.
Ans(0) ₹0

Which is the best martial art for self defense?
Ans(0) ₹0

What exactly is the UFO? Is it Alien craft or something else?
Ans(0) ₹0

Why the people says govt is hidding the secret of UFO or Aliens?
Ans(0) ₹0

How to create discount percentage using php?
Ans(1) ₹0

I am getting blank tracking details of the shiprocket order.
Ans(0) ₹0

{"message":"Failed to authenticate because of bad credentials or an invalid authorization header.","status_code":401}
Ans(0) ₹0

How good is the customer support of the Shiprocket?
Ans(0) ₹0

Can I change the Shiprocket pickup loation using PHP Curl?
Ans(0) ₹0

How to track shipping by shiprocket using PHP Curl?
Ans(0) ₹0


+Start Earning


Related Ques

How to track shipping by shiprocket using PHP Curl?
Ans(0) ₹0

How to get the nested Array Data using PHP?
Ans(1) ₹0

How to create order using PHP Curl on Shiprocket?
Ans(0) ₹0

I am getting blank tracking details of the shiprocket order.
Ans(0) ₹0

{"message":"Inventory sync is turned off. Please add a manual order!","status_code":400}
Ans(1) ₹0

Can I change the Shiprocket pickup loation using PHP Curl?
Ans(0) ₹0

I got this image about SEO improvement strategies, so can anyone explain to me about it?
Ans(2) ₹0

How to set Starting date and expire date using PHP?
Ans(0) ₹0

How to find if someone is ajax requesting on my site and how to get clients url?
Ans(4) ₹0

Stripe Charge::create not working on my website, why?
Ans(1) ₹0

json not working on xampp, I used javascript and php + Json
Ans(2) ₹0

How to track my own computer on Google Analytics so that I know my own views on my site?
Ans(3) ₹0

How to check how much MB or KB is my website consuming while ajax requesting using Browser?
Ans(6) ₹0

How to create discount percentage using php?
Ans(1) ₹0

How to create registration form in PHP?
Ans(0) ₹0

How to Create Login and Logout system using PHP?
Ans(1) ₹0

How to php send mail? how to send eamils using php from our websites?
Ans(0) ₹0

How to integrate STRIPE with PHP on my website?
Ans(1) ₹0

{"message":"Failed to authenticate because of bad credentials or an invalid authorization header.","status_code":401}
Ans(0) ₹0

How to create rss.xml file using PHP?
Ans(1) ₹0

Warning: DOMDocument::save(folde/file.xml): failed to open stream: Permission denied.. PHP error AWS centos
Ans(1) ₹0

How to get the domain name of from where the request is coming using PHP?
Ans(3) ₹0

Warning: Creating default object from empty value, Error on PHP JSON
Ans(2) ₹0

Warning: DOMDocument::createElement(): unterminated entity reference .. How to solve it?
Ans(1) ₹0

How to get the secure file or signed files from the aws s3 bucket using cloudfront PHP?
Ans(1) ₹0

Real time data insert and retrieve using Javascript and PHP.
Ans(0) ₹0

{"message":"Wrong Pickup location entered. Please choose one location from the data given","data":{"data":[{"id":306348,"pickup_location":"Primary","status":2,"pin_code":"783360"}]}}
Ans(1) ₹0

How to upload files using AWS s3 SDK PHP?
Ans(1) ₹0

How to upload images using php on AWS s3 Buckets?
Ans(1) ₹0

How to remove all the codes and show only strings using PHP
Ans(3) ₹0

How to get the present full url using PHP
Ans(2) ₹0

PHP get url last string - How to get last part string of the url using php
Ans(2) ₹0

{"message":"Unauthorized! You do not have the required permissions.","status_code":403}
Ans(1) ₹0

How to find if the file exist or not in the AWS s3 Buckets?
Ans(1) ₹0

PHP code to get the token of Shiprocket.
Ans(1) ₹0

free software website vs website from scratch using html
Ans(1) ₹0

I was trying to embed my upload s3 image files on my website but it shows blank, how to solve it?
Ans(1) ₹0

SyntaxError: expected expression, got \'<\' .. How to solve it?
Ans(1) ₹0

create own cdn like jquery cdn link, bootstrap cdn link,etc.
Ans(1) ₹0

Hom many hours it took to get the answers of my questions on Shiprocket support ?
Ans(1) ₹0

check if the radio input is checked using javascript
Ans(1) ₹0

Is there any software like PHP online editor? If there is then tell me.
Ans(0) ₹0

Warning: require(/vendor/autoload.php): failed to open stream: Permission denied in /var/www/ .. need solution.
Ans(1) ₹0

Amazon SNS is very difficult to register, I didn\'t even understand how to use it?
Ans(2) ₹0

Word break inside XMP element not working, what to do?
Ans(3) ₹0

How to display all Errors in PHP?
Ans(1) ₹0

Error: Secure Connection Failed, while visiting a website.
Ans(1) ₹0

How to do JavasScript PHP Long Poll for real time load data?
Ans(0) ₹0

how to check if there is element with the id name using javascript?
Ans(3) ₹0

What is php mailer and how to use it?
Ans(0) ₹0

How to create form with post method using fetch, JavaScript?
Ans(1) ₹0

How to install PHP?
Ans(0) ₹0

How to save our website from DMCA? Should we afraid of it?
Ans(2) ₹0

Notice: Undefined offset: 1 in .., PHP error, why this is occurring in my website?
Ans(1) ₹0

Error on my Firefox Inspect Element - Console, what this mean?
Ans(2) ₹0

XAMPP: phpmyadmin password not working, what is happening?
Ans(1) ₹0

How to get Amazon Aws Account for free and use it for free?
Ans(2) ₹0

auto audio play html not working on mobile, using Javascript
Ans(3) ₹0

How to create a Scroll bar that always stay at the bottom? HTML,Javascript
Ans(3) ₹0

Ubuntu - Permission denied - while openeing a folder, how to solve it?
Ans(2) ₹0

How to open a file using Ubuntu Terminal?
Ans(2) ₹0

Javascript not working on my WebView app, how to enable it in Android studio?
Ans(1) ₹0

Very less views but too many clicks, like 100 page views but 20 clicks, is it fair?
Ans(2) ₹0

Notice: Undefined index: redirecturl in .. PHP error, how to solve it?
Ans(2) ₹0

How to install react native on linux kali?
Ans(0) ₹0

My site didn\'t stpopped loading, and there is no error showing, what is going on?
Ans(2) ₹0

ContentType for PHP SDK on AWS s3 to upload .zip file.
Ans(1) ₹0

Need Shiprocket php api codes to check if delivery is available.
Ans(1) ₹0

Ajax auto load website vs PHP manually load website, which is best for earning online.
Ans(2) ₹0

How to show codes on html page, I want to suggest codes for my viewers
Ans(0) ₹0

How to get the ID of elements inside iFrame, JavaScript
Ans(0) ₹0

How to run addEventListener inside iFrame, using Javscript
Ans(0) ₹0

How to get the body tag inside iFrame, using Javascript
Ans(0) ₹0

How to get the values from url using Javascript, I mean from GET values from url
Ans(3) ₹0

Getting the last string of the url after slash javascript
Ans(3) ₹0

How to get the url of page from where we had just now redirected with PHP?
Ans(1) ₹0

How to get the value of php variable and use it on Javascript
Ans(3) ₹0

How to check the errors of PHP? Is there any software or codes that will help me in finding errors?
Ans(2) ₹0

Why this Facebook not trying to stop those adults photos and videos? It feels shame to use Facebook in front of family?
Ans(0) ₹0

Should I use Premium Account on Mritunjoy Forum? What is the benefit of using it?
Ans(0) ₹0

Shiprocket can I have multiple pick up locations?
Ans(0) ₹0

error timezone php or set time php timezone
Ans(1) ₹0

Eight words php search engine script for mysqli database
Ans(2) ₹0

php count variable values separated with comma
Ans(2) ₹0

How good is the customer support of the Shiprocket?
Ans(0) ₹0

Google keyword planner is not for free but how to get it for free, any ideas?
Ans(2) ₹0

Why there is limitation is asking questions on Mritunjoy Forum?
Ans(0) ₹0

Create social share buttons for facebook,twitter,google plus,etc.
Ans(2) ₹0

Develop physical health in village area
Ans(1) ₹0

What is SKU in shiprocket? From where I can get it?
Ans(1) ₹0

I did tried to connect my Android with PC Linux mint using USB, it doesn\'t work.
Ans(1) ₹0

ReferenceError: funcname is not defined.. error on function onmouseenter=\
Ans(1) ₹0

File /root/.android/repositories.cfg could not be load.. error while trying to build apk react native.
Ans(1) ₹0

Input tag not working on my android studio WebView, what should I do?
Ans(1) ₹0

How to play .m3u8 files in the website?
Ans(1) ₹0

Need codes to see the Country using Cloudflare.
Ans(1) ₹0

Need PHP functions to convert currencies.
Ans(1) ₹0

Why Aliens doesn\'t comes in front of us if they were roaming earth surface?
Ans(0) ₹0

Indian parents problems in our big ambitions, how to manage it?
Ans(0) ₹0

Where I can learn php mysql?
Ans(0) ₹0

How to build apk file from react native project on Android studio?
Ans(2) ₹0

Is textlocal.com international? Can it send messages to every country of the world?
Ans(0) ₹0

Does my ambitious is really big? How to know if my dreams is really big? What is big dreams?
Ans(0) ₹0

Those who cares about his respect every time is really foolish? Why and how?
Ans(0) ₹0

Why these stupid peoples really get blamed by those fake shadus? What those Shadus does?
Ans(0) ₹0

Something went wrong If the issue persists, try again in a few hours. Error while trying to Inspect URL.
Ans(0) ₹0

convert numbers into words in php
Ans(2) ₹0

Dam Food Oye had launched in our Gossaigaon, but Delivery charge so much Rs.20 huh?
Ans(2) ₹0

Oh! nice way to earn money for Idiot Gurus Like Shad Guru or what? Earn money by taking name of kaveri river.
Ans(2) ₹0

How to protect my website from hacking, sql injection etc?
Ans(1) ₹0

Can I convert large image file into data uri and use it in my web page?
Ans(0) ₹0

Google Keyword Planner vs SEMrush vs ahrefs vs Other SEO tools, which is the best?
Ans(0) ₹0

Why the numbers of UFO sighting is increasing as the time is passing by?
Ans(0) ₹0

What is PHP and what is PHP full form?
Ans(0) ₹0

Execution failed for task \':app:lintVitalRelease\'. .. React Native error Android studio
Ans(0) ₹0

Type w3schools php and learn php. w3schools is the best platform to learn php online.
Ans(0) ₹0

Unable to load script. make sure you\'re either running a Metro server ... React Native error
Ans(1) ₹0

Could not add entry \':app:compileReleaseJavaWithJavac\' .. error on React Native
Ans(1) ₹0

Execution failed for task app:bundleReleaseJsAndAssets .. React Native Android Studio.
Ans(1) ₹0

How to use webview on Android studio react native?
Ans(2) ₹0

React Native taking too long to build apk file .. ./gradlew assembleRelease
Ans(1) ₹0

How to create first project on react native?
Ans(1) ₹0

How to spend our time in right ways?
Ans(0) ₹0

How to chose the right work to do? How will I know it is right or wrong?
Ans(0) ₹0

cannot modify header information - headers already sent
Ans(2) ₹0

How is the AWS support plans, is it good or bad, as I see it is not free?
Ans(1) ₹0

How to replace all the similar letters on a words with javascript
Ans(0) ₹0

Create huge content for my website for Ranking and traffics Purposes, does it will work?
Ans(0) ₹0

How to write evergreen blogs and what were the evergreen niche for Blogging and YouTubes?
Ans(0) ₹0

Event blogging might be the best option for earning, but is it really a good idea?
Ans(0) ₹0

What is the top fashion for boys in 2019? For North East Indians.
Ans(0) ₹0

How to always stay happy and successful life?
Ans(0) ₹0

Does Dropshipping still works and how I earn with it?
Ans(0) ₹0

How to do IBPS clerk registration 2019?
Ans(0) ₹0

Who was Vishnuvardhan? And why he is so much popular?
Ans(0) ₹0

Error: Disconnected: No supported authentication methods available .. AWS ec2 Filezilla
Ans(1) ₹0

How to post the link in perfect way for increasing backlinks and traffics for my website?
Ans(3) ₹0

How was the Gang Leader Movie\'s Story and Roles, who were the actors?
Ans(3) ₹0

How to get the copied content inside iFrame
Ans(0) ₹0

Some website\'s pages have very less content but still, they were ranking on search engine how?
Ans(0) ₹0

How to replace the KeyCode or typing key whenever I type inside iFrame, Javascript
Ans(0) ₹0

I need lists of all the exeCommand() and how to use it, Javascript
Ans(0) ₹0

Eliminate render-blocking resources on Google page speed, how to solve this issue?
Ans(0) ₹0

Reduce server response times (TTFB), How to solve this issue
Ans(0) ₹0

How to write ourl url for SEO on href attribute
Ans(2) ₹0

How to maintain times as a blogger, to become perfect blogger?
Ans(2) ₹0

How much Humanoid robots is developed till today? I need lists
Ans(1) ₹0

How to use perfect Javscript Fetch Api, for one website to another website data transfer?
Ans(2) ₹0

How to transfer data from one website to another?
Ans(2) ₹0

How to Propose Girls in this 2019?
Ans(2) ₹0

Does the hosting providers really gives unlimited hosting plans?
Ans(1) ₹0

Eliminate render-blocking JavaScript and CSS in above-the-fold content, google speed test
Ans(1) ₹0

How to work as a team on a single website? What were the works that my partner will do on my website?
Ans(0) ₹0

How is the PUBG game so much popular? Is it interesting to play?
Ans(0) ₹0

Why to choice online business, is it more better than jobs?
Ans(0) ₹0