mirror of https://github.com/status-im/nimqml.git
feat: obtain url from user input
This commit is contained in:
parent
d48ed1ea37
commit
14052035c7
|
@ -48,3 +48,6 @@ proc plain_text*(htmlString: string): string =
|
||||||
|
|
||||||
proc escape_html*(input: string): string =
|
proc escape_html*(input: string): string =
|
||||||
result = $(dos_escape_html(input.cstring))
|
result = $(dos_escape_html(input.cstring))
|
||||||
|
|
||||||
|
proc url_fromUserInput*(input: string): string =
|
||||||
|
result = $(dos_qurl_fromUserInput(input.cstring))
|
||||||
|
|
|
@ -306,3 +306,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_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_plain_text(htmlString: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_escape_html(input: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_escape_html(input: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
proc dos_qurl_fromUserInput(input: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
Loading…
Reference in New Issue