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

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -