简体   繁体   中英

how can I change text to tag

  <text
                        style={{
                          letterSpacing: '30',
                          wordBreak: 'keep-all',
                        }}
                      >
                        {value.content}
                      </text>

I got text from api data content is text How can I change pls help me 😭 plz check page picture page picture

You are rendering API content with just text now.

try this <div dangerouslySetInnerHTML={value.content} />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM