# HtmlElement.Format

Kind: Method  
Namespace: `TinyComponents`  
Assembly: `TinyComponents.dll`  
Source: https://docs.sisk-framework.org/api/TinyComponents.HtmlElement.Format.html

## Format(FormattableString) {#TinyComponents_HtmlElement_Format_System_FormattableString_}

Formats the specified HTML string format, escaping the string interpolation pieces.

```csharp
public static string Format(FormattableString htmlString)
```

### Parameters

`htmlString` [FormattableString](https://learn.microsoft.com/dotnet/api/system.formattablestring)

The instance of [FormattableString](https://learn.microsoft.com/dotnet/api/system.formattablestring).

### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)
