Mondi_DE Posted June 10, 2019 Posted June 10, 2019 hello, I'm trying to read some text out of a serverside MySQL database, trigger it to the Client and show it in a GUI. My Problem is to format it to HTML for the GUI. that means if i just trigger the text with some html tags like <br /> it does not format it, but just show the tag like normal text. can anyone help or maybe has someone a method do convert such text into html code that works in RageMP
robearded Posted June 10, 2019 Posted June 10, 2019 use ExecuteJS together with a custom js function on cef(ex 'setBodyHtml') that sets the html content of the body/page
Mondi_DE Posted June 10, 2019 Author Posted June 10, 2019 (edited) vor einer Stunde schrieb robearded: use ExecuteJS together with a custom js function on cef(ex 'setBodyHtml') that sets the html content of the body/page I've found the Problem. it was in the .js File. used element.textContent instate of innerHTML Edited June 10, 2019 by Mondi_DE
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now