Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-Desert-Pixel-Nodes > DP Clean Prompt

ComfyUI Node: DP Clean Prompt

Class Name

DP Clean Prompt

Category
DP/text
Author
DesertPixelAi (Account age: 840days)
Extension
ComfyUI-Desert-Pixel-Nodes
Latest Updated
2025-06-22
Github Stars
0.03K

How to Install ComfyUI-Desert-Pixel-Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-Desert-Pixel-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Desert-Pixel-Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

DP Clean Prompt Description

Enhances text prompt clarity by removing unwanted characters and formatting inconsistencies.

DP Clean Prompt:

The DP Clean Prompt node is designed to enhance the clarity and readability of text prompts by systematically removing unwanted characters and formatting inconsistencies. This node is particularly useful for AI artists who work with text-based inputs, ensuring that their prompts are clean and free from distractions that could affect the interpretation by AI models. By eliminating special characters and replacing underscores with spaces, the node helps maintain a consistent and professional appearance of text prompts, which is crucial for achieving accurate and desired outcomes in AI-generated art.

DP Clean Prompt Input Parameters:

input_text

The input_text parameter is a required input that accepts a string of text, which can be multiline and must be provided by the user. This parameter serves as the raw text that the node will process to remove special characters and adjust formatting. The input text should be carefully crafted to include all necessary information for the AI model, as the cleaning process will focus on enhancing readability without altering the core content. There are no specific minimum or maximum values for this parameter, but it is essential to ensure that the text is relevant and complete for the intended use.

DP Clean Prompt Output Parameters:

clean_text

The clean_text output parameter provides the processed version of the input text, where special characters such as parentheses, slashes, and brackets have been removed, and underscores have been replaced with spaces. This cleaned text is more suitable for use in AI models, as it reduces the risk of misinterpretation caused by extraneous symbols or inconsistent formatting. The output is a single string that retains the original meaning and intent of the input while presenting it in a more streamlined and accessible format.

DP Clean Prompt Usage Tips:

  • Ensure that your input text is comprehensive and includes all necessary details before processing it with the DP Clean Prompt node, as the cleaning process focuses on formatting rather than content alteration.
  • Use the node to prepare text prompts for AI models that require clear and concise input, especially when working with complex or lengthy descriptions that may include special characters.

DP Clean Prompt Common Errors and Solutions:

Input text is empty

  • Explanation: This error occurs when the input_text parameter is not provided or is left empty.
  • Solution: Ensure that you input a valid string of text into the input_text parameter before executing the node.

Unexpected characters in output

  • Explanation: If the output still contains unexpected characters, it may be due to unsupported symbols not covered by the cleaning process.
  • Solution: Manually review the input text for any unusual characters and remove them before processing with the node.

DP Clean Prompt Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Desert-Pixel-Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

DP Clean Prompt