Sign in to follow this  
Mondi_DE

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

Recommended Posts

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

Share this post


Link to post
Share on other sites

use ExecuteJS together with a custom js function on cef(ex 'setBodyHtml') that sets the html content of the body/page

Share this post


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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.