feat: obtain url from user input

This commit is contained in:
Richard Ramos 2020-09-28 14:26:52 -04:00 committed by RichΛrd
parent d48ed1ea37
commit 14052035c7
2 changed files with 4 additions and 0 deletions

View File

@ -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))

View File

@ -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.}