bennel

@bennel@lemmy.world
0 Post – 9 Comments
Joined 1 years ago

You'd save it to the database in the same field as the rest of the text. You don't store the positions or anything like that - you'd store the text with HTML and have the front end render it as expected.

For instance, the database could have the following text:

Hello <strong>World</strong>

And the front end just renders HTML.

Alternatively, you could store Markdown syntax if you're hesitant to allow HTML.

EDIT: as always, if you store raw HTML, don't forget to sanitize it.

2 more...

Of course not lol. The CMS I usually use stores it as HTML in the database, so I have a go-to HTML sanitization plugin with a tag whitelist. I wish it used markdown or something similar under the hood instead, but it is what it is.

Nintendo issued an apology in 2020 over the issue, but argued that players who purchased the items were bound by the user agreement of the Nintendo Switch and thus ineligible to participate in a class action lawsuit against the company.

I'm not a lawyer, but this seems suspicious. How would this work? If I purchase a product in a retail store, where exactly would I sign something agreeing to give up my eligibility to participate in a class action suit? Are they trying to argue that linking the hardware to your account carries over the restriction to any hardware used?

2 more...

The funniest example of this being the development of COVID vaccines

I disagree. The funniest example of Trump never admitting he's wrong is definitely the Four Seasons Landscaping press release.

3 more...

I really hope that was a typo and they meant AND a payment of $15k because someone who posted $200k bail shouldn't have a problem finding $15k to get out of a murder charge.

1 more...

In Canada and the UK, if the government fails to pass a budget, it triggers an automatic vote of no confidence, parliament is dissolved, and it triggers a general election.

US politicians do not suffer any consequences for failing to do their job.

One other thing to add: permanent residency is issued at the province level.

If you're planning to move here permanently and don't speak French, don't move anywhere in Quebec. It's the only province that requires French language competency for permanent residency. In other provinces, you can acquire PR with just English.

I second the Museum of Science! It's a lot of fun.

So... anybody else have to read that title a second time because they missed a letter?