Dynadot โ€” .com Transfer

My minds blank...

SpaceshipSpaceship
Watch

adam_uk

Established Member
Impact
20
hey people i cant rembmer what it is but theres a function in php i belive called something (str_ something i think)

that stops the browser parsing html and php stuff when selelcting data from a database

basically ive got this entry in my database that contains html and i cant remmber the function i use to stop it processing it when its selected from the database

any ideas cheers :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Are you thinking of htmlspecialchars or htmlenteties? Is what you're wanting to do is display the source code of the html rather than having the browser parse it when you print it? If so, you can also use <xmp> or <pre> tags around what your print.
<xmp>
<?=$result['your_result'];?>
</xmp>
 
0
•••
thats the one! htmlspecialchars

cheers :)
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back