StringExtensions.ExtractQuote Method

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

ExtractQuote(string, bool)

Returns content of first quote in input string.

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

Parameters

input
string

The string from which to extract quote.

html
bool

Set to true if the input text is html and the quote is wrapped in a <q>...</q> element, or false if regular quotation marks “...” are used.

Returns

string

The quoted text.