Files
RSSHub/lib/routes/lanqiao/utils.tsx
T
DIYgod cf4e772de8 refactor: replace art template with jsx (#20777)
* refactor: replace art template with jsx

* fix: tsx files

* fix: renderToString import

* fix: hono html raw import

* feat: remove art
2025-12-29 12:27:32 +08:00

13 lines
245 B
TypeScript

import { renderToString } from 'hono/jsx/dom/server';
const courseDesc = (picurl, desc) =>
renderToString(
<>
<img src={picurl} />
<br />
{desc}
</>
);
export default { courseDesc };