Html.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * Html.h
8  *
9  * @author mikee47 <mike@sillyhouse.net> Nov 2022
10  *
11  ****/
12 
13 #pragma once
14 
15 #include "Standard.h"
16 
17 namespace Format
18 {
19 class Html : public Standard
20 {
21 public:
22  void escape(String& value) const override;
23 
24  MimeType mimeType() const override
25  {
26  return MIME_HTML;
27  }
28 };
29 
30 extern Html html;
31 
32 } // namespace Format
MimeType mimeType() const override
Corresponding MIME type for this format.
Definition: Html.h:44
MimeType
Definition: WebConstants.h:53
The String class.
Definition: WString.h:136
Definition: Html.h:29
Definition: Formatter.h:18
void escape(String &value) const override
Perform any necessary text escaping so output is valid.
Html html