N
N
Natebash2022-03-01 11:26:16
JavaScript
Natebash, 2022-03-01 11:26:16

Revealing and styling data from the text coming from the back?

Image

621dd7cd9cb9b606244799.png


Hello everyone, maybe someone met such a case. There is a task: a string comes from the back (on the back, the string is processed, finds secure data in the string, and sends it to the front. At the front, this part of the string should be highlighted in gray, clearly indicating which part of the string is secure. The

question is, what is the algorithm of actions? Given that I the back receives the most random data, the secure data can be names, dates, numbers, and only the back can explicitly specify what to highlight.How should the back send data so that this data can be processed at the front?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Natebash, 2022-03-01
@Natebash

Problem solved with - https://www.npmjs.com/package/html-react-parser
Thanks WapSter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question