Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
Regex på billedebeskrivelse
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom9521 authored and Thom9521 committed Jan 6, 2020
1 parent a81bcda commit a071a33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/showScooter/ShowScooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ function ShowScooter() {
<li>
<b>Kategori:</b> <GetCategoryById categoryId={scoCategoryId} />
</li>
<li className="my-4">{scoDescription}</li>
<li className="my-4">
<pre className="frontpageText">
{scoDescription.replace(/<br ?\/?>/g, '\n')}
</pre>
</li>
<li className="priceGlow">{scoPrice} DKK</li>
<li className="priceVAT">{scoPriceVAT} DKK inkl. moms</li>
</ul>
Expand Down

0 comments on commit a071a33

Please sign in to comment.