php - put string in variable using <? ?> -


I think it is sometimes easier to use php tags instead of echo, for example

< Pre> & lt;? If () echo "img src = '' onclick = 'warning (\" hello \ ")' / & gt;"; ? & Gt;

Instead I like the code

   

We got rid of backslashing. But about the string I want something like this:

   

You should use:

  & lt;? Php $ str = & lt;  IMGTAG; copy $ str; ? & Gt;  

Enjoy your code.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -