FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » A curious thing...about tags.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: A curious thing...about tags. [message #182207 is a reply to message #182205] Sat, 20 July 2013 11:41 Go to previous messageGo to previous message
Thomas Mlynarczyk is currently offline  Thomas Mlynarczyk
Messages: 131
Registered: September 2010
Karma:
Senior Member
The Natural Philosopher schrieb:
> suppose I want my string to be "?> something <?"
> How on earth is it possible to STOP PHP interpreting that as some
> blasted 'escape to outputting text'

<?php echo "?> something <?";

Works as expected. In the browser output you'll see "?> something" since
the browser will interpret the remaining "<?" as the start of a
processing instruction, but when you look at the generated source code,
it's all there as it should be. Perhaps you might want

<?php echo htmlspecialchars( "?> something <?" );

Greetings,
Thomas

--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Paypal IPN and HTTP 1.1
Next Topic: Query with PHP and MySql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Sep 16 18:49:21 GMT 2024

Total time taken to generate the page: 0.06521 seconds