mirror of https://github.com/status-im/nimqml.git
Add function to escape html
This commit is contained in:
parent
57d6e6459d
commit
d48ed1ea37
|
@ -45,3 +45,6 @@ proc image_resizer*(imagePath: string, maxSize: int = 2000, tmpDir: string): str
|
|||
|
||||
proc plain_text*(htmlString: string): string =
|
||||
result = $(dos_plain_text(htmlString.cstring))
|
||||
|
||||
proc escape_html*(input: string): string =
|
||||
result = $(dos_escape_html(input.cstring))
|
||||
|
|
|
@ -305,3 +305,4 @@ proc dos_qabstracttablemodel_index(modelPtr: DosQAbstractTableModel, row: cint,
|
|||
|
||||
proc dos_image_resizer(imagePath: cstring, maxSize: cint, tmpDirPath: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_plain_text(htmlString: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_escape_html(input: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||
|
|
Loading…
Reference in New Issue