this post was submitted on 12 Apr 2025
1 points (100.0% liked)

General Discussion

0 readers
2 users here now

A place to talk about whatever you want


This is a forum category containing topical discussion. You can start new discussions by mentioning this category.

founded 5 months ago
 

Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

So to have something like Why did the chicken cross the road Answer When Answer is clicked it changes to To get to the other side

How to enter this?

you are viewing a single comment's thread
view the rest of the comments
[–] baris@community.nodebb.org 1 points 2 months ago (3 children)

Not sure why it doesn't trigger for fediverse posts. At the very least it should have turned into a blockquote. @julian will have to take a look at the fedi issue.

[–] julian@community.nodebb.org 1 points 2 months ago* (last edited 2 months ago) (2 children)

@eeeee Mastodon posts are interpreted as-is, so that symbol combination is meaningless for Mastodon, and that is reflected in NodeBB

Will have to test between NodeBB

[–] eeeee@community.nodebb.org 1 points 2 months ago* (last edited 2 months ago) (1 children)

@julian yes I never expected it so function on Mastodon, of course not. but when putting that symbol combination into Mastodon post, and sending it to nodebb you would think it would trigger nodebb side. Actally its hard to understand how it doesnt activate spoiler on nodebb side, given its the same 2 characters. Im more perplexed, than bothered, that it doesnt!

[–] julian@community.nodebb.org 1 points 2 months ago

@eeeee when Mastodon posts enter NodeBB we save the html in the database as-is (and sanitize it on output).

This is different from NodeBB internally which saves markdown into the database.

The spoiler plugin might not be matching the symbols because from remote communities the line begins with <p>&gt;! spoiler instead of just with &gt;! itself.