Ways to validate the output html #484
-
| 
         Hello there, i'm working with NextJS, MDX editor and next-mdx-remote and i need to ensure that my user input will produce valid HTML. This can happen when i provide this input : Hello world <Test/>Assuming  const Test = () => <div>My Test component</div>This will create this output : <p>Hello world <div>My Test component</div></p>Then i'll have those errors :  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Bilboramix
          
      
      
        Dec 6, 2024 
      
    
    Replies: 1 comment
-
| 
         I found my way using html-validate package in a server action.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        Bilboramix
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
I found my way using html-validate package in a server action.