Serialize nodes within <script> and <style> tags when converting to HTML