code: def plaintext_to_html(text, classname=None):
      content = "<br>\n".join(html.escape(x) for x in text.split("\n"))
  
      return (
          f"<p class='{classname}'>{content}</p>"
          if classname
          else f"<p>{content}</p>"
      )
  
file_path: stable-diffusion-webui/modules/ui_common.py
imports: import json
  import html
  import os
  import platform
  import sys
  import gradio
  import subprocess
  from modules import call_queue, shared
  from modules.generation_parameters_copypaste import image_from_url_text
  import modules.images
  from modules.ui_components import ToolButton
  import modules.generation_parameters_copypaste
label_desc: Use image node_id 2 for calling a global function with example usage: plaintext_to_html(text, classname) and returns: unknown