Shaun Baylis Shaun Baylis - 6 months ago 15
Vb.net Question

how can i ignore symbols in a line of VB

I want to create several variables in VB which will be strings which will hold various snippets of HTML code.

The issue i am having, is that it picks up all of the symbols and function words. i just want a piece of code (for example:

<div class="event-container">
) to be declared as a string.

Thank you

Shaun

Answer
Dim mystring as String = "<div class=""event-container"">"

Every " needs to be escaped