Skip to content

Tag: javascript

loading javascript classes stored in database

I have a react application, using webpack. In my application, I allow users to overwrite default behaviors with their own custom behavior. For example lets say the application has a button that when clicked would alert a message to the user and this user would rather not be annoyed with an alert box they woul…

PHP Write HTML tags into file and display it

I want to make a simple comment system in PHP and my problem is when the user type ‘<‘ it disappear because it takes it to HTML code and mess my code. So what I need to do, when the user type this into the textarea: <stdio.h>, and post it, it should appear as <stdio.h>. My PHP code:…