Step 1: Understanding the Concept
Anisole is \(\text{C}_6\text{H}_5\text{OCH}_3\). The \(\text{C}_6\text{H}_5-\text{O}\) bond is strong because of resonance, so it does not break.
Step 2: Cleavage
HI protonates the oxygen and iodide attacks the methyl carbon by \(\text{S}_\text{N}2\).