Reviewed-on: #433 Co-authored-by: miteruzo <miteruzo@naver.com>
このコミットはプルリクエスト #433 でマージされました。
このコミットが含まれているのは:
@@ -0,0 +1,10 @@
|
||||
import { renderToStaticMarkup } from 'react-dom/server'
|
||||
|
||||
import type { ReactNode } from 'react'
|
||||
|
||||
|
||||
export const textContentOf = (node: ReactNode): string => {
|
||||
const container = document.createElement ('div')
|
||||
container.innerHTML = renderToStaticMarkup (<>{node}</>)
|
||||
return container.textContent ?? ''
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする