Hi,
I know nothing about javascript, so please be kind. I am trying to remove inline styles from data output. I use SQL Server & Coldfusion. The messed up output is coming from a query. The query is named "getinfo" and the field is named "content". I tried the following code, but it doesn't seem to be working. Any advice (dumbed down, please) would be much appreciated.
<cfoutput>
<script language = "javascript">
var before = "#getinfo.content# <p>stuff</p> with <br>tags</br>";
var after = #getinfo.content#.replace(/<[^>]*>/g, "");
alert(after);// some stuff with tags
</script>
</cfoutput>
I know nothing about javascript, so please be kind. I am trying to remove inline styles from data output. I use SQL Server & Coldfusion. The messed up output is coming from a query. The query is named "getinfo" and the field is named "content". I tried the following code, but it doesn't seem to be working. Any advice (dumbed down, please) would be much appreciated.
<cfoutput>
<script language = "javascript">
var before = "#getinfo.content# <p>stuff</p> with <br>tags</br>";
var after = #getinfo.content#.replace(/<[^>]*>/g, "");
alert(after);// some stuff with tags
</script>
</cfoutput>