js.dom: What is JS.String and who convert it to a simple string #24216
Unanswered
gchumillas
asked this question in
Questions and Answers
Replies: 1 comment
-
OK, this seems to be working: pub fn (el HTMLElement) get_text_content() string {
return string(el.native_element.textContent)
} The problem with this library is that it that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm reviewing this file:
https://github.com/vlang/v/blob/master/vlib/js/dom/dom.js.v
and was wondering what is
JS.String
and how can I convert it to a simplestring
.I'm trying to create a function like this, and I don't want to return a strange structure:
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions