Jump to content

[C#][Clientside]How to convert a String into HTML code?


Recommended Posts


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

Link to comment
Share on other sites

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 by Mondi_DE
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...