Commit Graph

54 Commits

Author SHA1 Message Date
default
755d997fb1 Updated copyright year. 2024-01-04 09:22:03 +01:00
Yonle
a5c740f564 format.c: add <bdi>
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-15 12:01:20 +07:00
default
bc5d0d4ed0 Replaced encode_html_strict() with xs_html_encode(). 2023-11-20 18:33:24 +01:00
default
b1868d85bb New function encode_html_strict(). 2023-10-04 18:19:38 +02:00
default
931b871eb1 Also accept s HTML tags. 2023-09-17 03:03:20 +02:00
default
952da47c6d Backport from xs. 2023-09-17 02:52:44 +02:00
default
e3fbb807ff Improved heart <3 emoji. 2023-09-02 09:23:44 +02:00
default
8b176292d6 Simplified smiley processing. 2023-08-17 18:20:16 +02:00
default
0f8c0cd694 Updated comment in headers. 2023-07-28 11:34:18 +02:00
default
f23d2c05ab Fixed minor memory leak. 2023-07-24 12:52:09 +02:00
Yonle
7710ca76a0 format.c: Encode all HTML characters when we're in pre element until we are out.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-23 20:20:15 +07:00
Yonle
5672fe2cc6 format.c: Allow several tags
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-23 14:55:06 +07:00
Yonle
7e40e0d783 html.c: invalid html tag: else? just show it as encoded text.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-15 02:14:33 +07:00
default
1c5a689457 Fixed some memory leaks. 2023-07-11 19:45:58 +02:00
default
b5f63b63fa In sanitize(), delete unsupported HTML tags instead of showing them. 2023-06-13 19:00:26 +02:00
default
5654960161 Also accept HTML tag <ol>. 2023-06-13 18:57:43 +02:00
default
b9dee83f27 Fix links with # in it. 2023-06-12 19:01:17 +02:00
default
fdb35f3437 Also accept 'cite' as a valid HTML tag. 2023-05-24 14:58:42 +02:00
default
49362f5404 Convert image links in notes to attachments. 2023-05-21 20:32:23 +02:00
default
63053ab5db Minor prototype change. 2023-05-21 20:11:06 +02:00
default
1956c05ca4 Updated documentation. 2023-03-08 04:47:57 +01:00
default
2250ad7027 Sanitize control codes in JSON code. 2023-03-07 09:56:16 +01:00
default
1152450d1c Changed the way invalid codes in strings are stripped. 2023-03-06 13:28:15 +01:00
default
49f2f498de Strip dangerous control codes in sanitize(). 2023-03-06 11:06:35 +01:00
default
6c033900a5 Moved the angry emoticon above the sad one to avoid clashes. 2023-02-01 10:09:11 +01:00
default
12131b67a3 Added the angry emoticon. 2023-02-01 10:01:47 +01:00
default
a38c7aeadc Updated year in copyright notices. 2023-01-17 09:50:16 +01:00
default
e58eb068fb Minor URL formatting tweaks. 2023-01-13 07:02:04 +01:00
default
bb0d8f2a27 Backport from xs. 2023-01-12 09:28:02 +01:00
default
645e7ec43e Some code reordering to placate scan-build's wrath. 2022-12-14 04:55:47 +01:00
default
2bf9134fda Added :shrug2: 2022-12-03 20:54:44 +01:00
default
4304f7301c Fixed typo. 2022-11-16 17:49:33 +01:00
default
206dd52275 More sanitize tweaks. 2022-11-16 17:46:55 +01:00
default
bdc689e594 In sanitize(), rebuild the accepted tags with only the accepted attributes. 2022-11-16 16:53:59 +01:00
default
236ca9af6b Call sanitize() as soon as possible. 2022-11-16 13:13:31 +01:00
default
aeec858370 Added more emojis. 2022-11-13 17:14:14 +01:00
default
bb7bcc674c More formatting tweaks. 2022-11-13 09:12:20 +01:00
default
73323a7fc0 Some formatting refactoring. 2022-11-13 08:41:50 +01:00
default
01743cee55 More tweaks to not_really_markdown() to avoid ambiguities. 2022-11-06 06:55:06 +01:00
default
9ab8016f6c More not_really_markdown() tweaks. 2022-11-01 19:49:35 +01:00
default
5dc26534b6 Fixed a bug in not_really_markdown() that confused code with pre markup. 2022-11-01 19:15:56 +01:00
default
00d683fa04 Accepted for HTML tags. 2022-10-30 06:01:46 +01:00
default
f767507896 Also add code to the valid HTML tags. 2022-10-28 22:01:33 +02:00
default
9af260f781 Also add pre to the valid HTML tags. 2022-10-28 21:56:24 +02:00
default
b8fbc946b8 Accept more HTML tags. 2022-10-28 19:23:47 +02:00
default
a68f068e71 Also add br+slash as a valid HTML tag. 2022-10-28 18:13:00 +02:00
default
5ee9504b18 Be more aggressive in HTML sanitization. 2022-10-28 18:06:42 +02:00
default
fcf2747308 Links in created Notes now include a target=_blank. 2022-10-20 11:14:30 +02:00
default
af95a58263 Some emoticon tweaks. 2022-10-16 20:23:01 +02:00
default
3a1123bfa4 Added beers to emoticon shortcodes because yes. 2022-10-12 08:34:00 +02:00