# Serialisasi elemen lain {#serializers}

Source: [Serialisasi elemen lain | Referensi API editor Yurich untuk React · Yurich](https://leeyujoo.com/yurich/id/api/serializers/)

Package: [`yurich`](https://www.npmjs.com/package/yurich)

Package version: `0.1.2`

```ts
import { toHTML, toJSON, Bold, Link } from 'yurich';

const html = toHTML(element, [Bold, Link]);
const json = toJSON(element, [Bold, Link]);
```

`toHTML` dan `toJSON` menerapkan aturan ekstensi pada elemen HTML yang sudah ada. Perlakukan JSON hasilnya sebagai nilai yang tidak diubah.

[Keluaran HTML dan JSON](https://leeyujoo.com/yurich/id/features/html-and-json/) · [Kolom ekstensi](https://leeyujoo.com/yurich/id/extensions/reference/)
