SELECT
'text' AS component,
'headline' as id;
SELECT post.id,
ts_headline('english', post.content, plainto_tsquery('english', $search), 'StartSel=**, StopSel=**') AS contents_md,
translations.language_code
FROM post
JOIN translations ON translations.element_id = post.id
AND translations.element_type = 'post_post'
AND translations.language_code = 'en'
WHERE post.content_tsv @@ plainto_tsquery('english', $search);
Hi, I'm trying to add styling to the bold words in my text component. Do you think it is possible to add the CSS ID to the content so instead of:
I could use for example: