StringExtensions.Quote Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Quote(string, bool)

Surrounds the string with quotation marks.

public static string Quote(this string input, bool html = false)

Parameters

input
string
html
bool

Set to true to return the input wrapped in a <q>...</q> element, otherwise regular quotation marks “...” are used to wrap the input.

Returns

string