Shaun Baylis Shaun Baylis - 1 year ago 50 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


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

Every " needs to be escaped