📜  字符串到 html javascript 反应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.237000             🧑  作者: Mango

代码示例2
import React from 'react';
import { Markup } from 'interweave';

const articleContent = "

Lorem ipsum dolor laboriosam.

Facere debitis impedit doloremque eveniet eligendi reiciendis ratione obcaecati repellendus culpa? Blanditiis enim cum tenetur non rem, atque, earum quis, reprehenderit accusantium iure quas beatae.

Lorem ipsum dolor sit amet this is a link, click me Sunt ducimus corrupti? Eveniet velit numquam deleniti, delectus

  1. reiciendis ratione obcaecati
  2. repellendus culpa? Blanditiis enim
  3. cum tenetur non rem, atque, earum quis,
reprehenderit accusantium iure quas beatae.

" // this will take the articleContent string and convert it to HTML markup. See: https://milesj.gitbook.io/interweave