Hello, Askvortsov!
I'll disregard the compilation trouble for now and get into the matter at hand:
m.trust((t
.firstPost() .contentHtml() .replace(/(?<!<[^>]*)(?<Text>[^<>]*)/g, '' )
)
I tweaked the filter like so:
t.prototype.oncreate.call(this, e);
n.a.store.find("discussions",{
filter: {
type: 'discussion',
q: 'url',
include:'firstPost,user,tags'
},
page: {limit: 6},
sort: '-commentCount',
})
Is there any way to get only the first image or url (you can see Youtube embeds also show in the screenshot) in the data and disregard the rest? Currently using some heavy CSS selectoring to get rid of some messiness.
I'm think as contentHTML() is called, the data is returned as a string, but is there anyway to return only the first image or url in the view() function or app store itself?
Thank you.