I want to detect a unicode and format it to next line. To make it look bulleted.
Here's the sample text that renders from the database.
I'm using AntD and ReactJS.
I'm thinking if I can use this toString.replace()
const renderColumn = (text, record, index, rowKey, cardKey) => {
return (
<Form.Item>
{getFieldDecorator(`${rowKey}-${cardKey}-${index}`, {
initialValue: text, // THIS IS WHERE THE TEXT RENDER
rules: [
{
required: true,
message: '*Please fill out this field!',
},
],
}
</Form.Item>
)
}
question from:
https://stackoverflow.com/questions/65650881/check-if-string-has-unicode-u25cf 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…