mardi 15 septembre 2015

remove line break after and newline with rails?

Trying to remove the linebreak

<li>familiar with methodologies like IPMA and Prince;</li>
<br>

there is also a new line in there, tried this to no avail ( inside model )

  def description
    read_attribute("description").gsub('</li><br>', '</li>')
  end

also tried with "\n" what is the correct way to remove the <br> after the </li> ?

Aucun commentaire:

Enregistrer un commentaire