Show / Hide Table of Contents

Class EcoTagToHTMLConverter

Extension methods for converting Eco tag strings to HTML tag based equivilants.

Inheritance
System.Object
EcoTagToHTMLConverter
Namespace: Eco.Shared.Utils
Assembly: Eco.Shared.dll
Syntax
public static class EcoTagToHTMLConverter : Object

Methods

ToHTML(LocString, Boolean, Boolean)

Converts a Eco text string to a HTML string for use by Vue/HTML5

Declaration
public static string ToHTML(this LocString input, bool stripFoldouts = false, bool stripNonHTMLTags = false)
Parameters
Type Name Description
LocString input
System.Boolean stripFoldouts

Flag used to strip foldout tags. Defaults to false.

System.Boolean stripNonHTMLTags

Optional flag to strip all non HTML tags. Defaults to false.

Returns
Type Description
System.String

Converted string ready for use in HTML.

ToHTML(String, Boolean, Boolean)

Converts a Eco text string to a HTML string for use by Vue/HTML5

Declaration
public static string ToHTML(this string input, bool stripFoldouts = false, bool stripNonHTMLTags = false)
Parameters
Type Name Description
System.String input

String to convert.

System.Boolean stripFoldouts

Flag used to strip foldout tags. Defaults to false.

System.Boolean stripNonHTMLTags

Optional flag to strip all non HTML tags. Defaults to false.

Returns
Type Description
System.String

Converted string ready for use in HTML.

☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾