can't pass html to string (' and "= problem )

I want to use something like this as string:

something like: dim s as string="<p style="font-family:'Arial'; font-size:30px ">"

How do I prevent the " and ’ -signs from interfering?

Double the double quotes:

dim s as string="<p style=""font-family:'Arial'; font-size:30px "">"

Thanks for the ultrafast reply!
Weird, but it works. :slight_smile:

Also, most HTML parsers are flexible about single vs. double quotes, so you could do it this way:

dim s as string="<p style='font-family:Arial; font-size:30px'>"

You can also paste this code unmodified into a constant.