You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 rivejä
203 B

  1. const parse = require('html-react-parser');
  2. module.exports = {
  3. htmlParse : function(html){
  4. if(html){
  5. return parse(html.replace(/\n/g,'<br/>'));
  6. }
  7. else '';
  8. }
  9. }