CMS API Replacing Ordered List with Line Breaks

I’m attempting to create a CMS Item with an Ordered List. Here is the HTML:

<ol>
  <li>
    Dealing with Writer's Block Writer's block is a common challenge that can
    hinder productivity and creativity. To overcome writer's block, try the
    following strategies:
  </li>
  <li>
    Take a break: Step away from your writing and engage in activities that
    relax and rejuvenate you. Go for a walk, practice meditation, or indulge in
    a hobby. This break can help clear your mind and spark new ideas.
  </li>
  <li>
    Freewriting: Start writing without any specific purpose or structure. Write
    whatever comes to mind, without worrying about grammar or coherence. This
    exercise can help break through mental blocks and generate new ideas.
  </li>
  <li>
    Change your environment: Sometimes a change of scenery can refresh your
    mind. Move to a different location, such as a coffee shop or park, to
    stimulate creativity and overcome writer's block.
  </li>
  <li>
    Handling Multiple Projects Simultaneously Virtual assistants often handle
    multiple projects with different deadlines and requirements. To effectively
    manage multiple projects:
  </li>
  <li>
    Prioritize tasks: Evaluate the urgency and importance of each project and
    prioritize accordingly. Create a to-do list or use project management tools
    to stay organized and focused.
  </li>
  <li>
    Break projects into smaller tasks: Divide larger projects into smaller,
    manageable tasks. This approach helps prevent overwhelm and allows you to
    make progress on each project consistently.
  </li>
  <li>
    Communicate with clients: Maintain open communication with clients regarding
    project timelines and milestones. If necessary, negotiate deadlines or seek
    additional support to ensure timely delivery of high-quality work.
  </li>
  <li>
    Meeting Tight Deadlines Meeting tight deadlines is a common challenge in
    virtual assistant content writing. To effectively manage deadlines:
  </li>
  <li>
    Plan and schedule: Create a detailed content calendar or schedule to
    allocate time for each project. Break down tasks and set realistic deadlines
    for yourself to avoid last-minute rushes.
  </li>
  <li>
    Time management techniques: Implement time management techniques such as the
    Pomodoro Technique, where you work in focused bursts with short breaks in
    between. This approach increases productivity and helps you meet deadlines
    efficiently.
  </li>
  <li>
    Avoid overcommitting: Be realistic about your workload and avoid taking on
    more projects than you can handle. Communicate with clients upfront about
    your availability and set expectations accordingly.
  </li>
  <li>
    Maintaining Originality in Writing Creating original content can be
    challenging, especially when covering popular or saturated topics. To
    maintain originality:
  </li> 
  <li>
    Conduct thorough research: Dive deep into the topic and gather unique
    information or insights that others may have missed. Look for lesser-known
    angles or perspectives to bring a fresh perspective to the content.
  </li>
  <li>
    Infuse your personal touch: Inject your personality, experiences, and unique
    voice into the content. Share personal anecdotes, opinions, or examples to
    make the content more relatable and original.
  </li>
  <li>
    Use creative storytelling: Tell stories or narratives to present the
    information in an engaging and original way. Use metaphors, analogies, or
    real-life examples to make the content more memorable and distinctive.
  </li>
</ol>

Although I receive a successful response from Webflow, my List Items are replaced with Line Breaks. After requesting the CMS Item I see:

<ol id="">
  <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</ol>

Is this a feature or a bug? I imagine that webflow would be sanitizing the HTML, but I’m not sure why my List Items would be removed.

@Max_Chehab - Last I checked Webflow does not allow the use of html list elements (ul, ol, dl) with the CMS collection element. I guess because they don’t wan’t to deal with all the support issues or?

2 Likes

@webdev thanks for the info! Is this documented anywhere? I couldn’t find anything here Field Types & Item Values