I’m actually working on a website in which I’ll need to replace many words by something like for example: banana by ******.
I use a website with php and mysql, but I also use javascript.
I have in my database a table in which are banned words.
I’m receive this words in an array from my database. i’m looking for a function that will be able to replace this words in all tha page. i can not use function like ob start.
The best will be a function that check on body onload and replace words.
Finally I find my own way to make this system it is an easy way and you don’t need to change all the code for all your website just the page that needs to be censored.
As far as I’m concerned I uses thausands of pages but the things is that I have one main page that included others pages.
For poeple who may be interested. all you have to do is to put this code at the beginning of your page so after the just put this code
<?php ob_start(); ?>at the end of the body, before just put this code `This is an easy way, but you can also do an array for all censored words.