Rev 3719 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
import htmlParse from 'html-react-parser';export const parse = (str) => {if (typeof str !== 'string') return '';const stripText = str.replace(/<p>|<\/p>/g, '');return htmlParse(stripText);};export const parseHelperToSelect = (data) => {if (!data) return [];return Object.entries(data).map(([key, value]) => ({label: value,value: key}));};